From dfe49e8c310b3c571ef80fe6f3399724a6ff5f24 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sun, 17 Feb 2013 14:59:41 +0000 Subject: [PATCH] Test ivar-invariant.m: use a more idiomatic RUN line and tighten the test by matching the function name first llvm-svn: 175395 --- clang/test/CodeGenObjC/ivar-invariant.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/test/CodeGenObjC/ivar-invariant.m b/clang/test/CodeGenObjC/ivar-invariant.m index 6d1d706..7552e7a 100644 --- a/clang/test/CodeGenObjC/ivar-invariant.m +++ b/clang/test/CodeGenObjC/ivar-invariant.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -x objective-c %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s @interface NSObject + (id) new; @@ -28,6 +28,7 @@ } @end +// CHECK: define internal i8* @"\01-[Derived init]" // CHECK: [[IVAR:%.*]] = load i64* @"OBJC_IVAR_$_Derived.member", !invariant.load void * variant_load_1(int i) { @@ -39,6 +40,7 @@ void * variant_load_1(int i) { return ptr; } +// CHECK: define i8* @variant_load_1(i32 %i) // CHECK: [[IVAR:%.*]] = load i64* @"OBJC_IVAR_$_Derived.member"{{$}} @interface Container : Derived @end @@ -49,5 +51,6 @@ void * variant_load_1(int i) { } @end +// CHECK: define internal i8* @"\01-[Container invariant_load_1]" // CHECK: [[IVAR:%.*]] = load i64* @"OBJC_IVAR_$_Derived.member", !invariant.load -- 2.7.4