From: Dmitri Gribenko Date: Sun, 17 Feb 2013 14:59:41 +0000 (+0000) Subject: Test ivar-invariant.m: use a more idiomatic RUN line and tighten the test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e50e91d4a6f6c00fbf6a7bb9b1ec72a4276579ae;p=clang Test ivar-invariant.m: use a more idiomatic RUN line and tighten the test by matching the function name first git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175395 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/ivar-invariant.m b/test/CodeGenObjC/ivar-invariant.m index 6d1d706803..7552e7a8a3 100644 --- a/test/CodeGenObjC/ivar-invariant.m +++ b/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