r175395 - Test ivar-invariant.m: use a more idiomatic RUN line and tighten the test
Dmitri Gribenko
gribozavr at gmail.com
Sun Feb 17 06:59:42 PST 2013
Author: gribozavr
Date: Sun Feb 17 08:59:41 2013
New Revision: 175395
URL: http://llvm.org/viewvc/llvm-project?rev=175395&view=rev
Log:
Test ivar-invariant.m: use a more idiomatic RUN line and tighten the test
by matching the function name first
Modified:
cfe/trunk/test/CodeGenObjC/ivar-invariant.m
Modified: cfe/trunk/test/CodeGenObjC/ivar-invariant.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/ivar-invariant.m?rev=175395&r1=175394&r2=175395&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/ivar-invariant.m (original)
+++ cfe/trunk/test/CodeGenObjC/ivar-invariant.m Sun Feb 17 08:59:41 2013
@@ -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
More information about the cfe-commits
mailing list