[cfe-commits] r98087 - /cfe/trunk/test/CodeGenObjC/id-isa-codegen.m
Fariborz Jahanian
fjahanian at apple.com
Tue Mar 9 13:50:08 PST 2010
Author: fjahanian
Date: Tue Mar 9 15:50:08 2010
New Revision: 98087
URL: http://llvm.org/viewvc/llvm-project?rev=98087&view=rev
Log:
See if this test makes it though buildbot.
Modified:
cfe/trunk/test/CodeGenObjC/id-isa-codegen.m
Modified: cfe/trunk/test/CodeGenObjC/id-isa-codegen.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/id-isa-codegen.m?rev=98087&r1=98086&r2=98087&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/id-isa-codegen.m (original)
+++ cfe/trunk/test/CodeGenObjC/id-isa-codegen.m Tue Mar 9 15:50:08 2010
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm -o %t %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s
+// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -o - %s | FileCheck -check-prefix LP32 %s
typedef struct objc_class *Class;
@@ -63,3 +64,10 @@
((id)cat)->isa = dynamicSubclass;
}
@end
+// CHECK-LP64: %{{.*}} = load i8** %
+// CHECK-LP64: %{{.*}} = bitcast i8* %{{.*}} to i8**
+// CHECK-LP64: store i8* %{{.*}}, i8** %{{.*}}
+
+// CHECK-LP32: %{{.*}} = load i8** %
+// CHECK-LP32: %{{.*}} = bitcast i8* %{{.*}} to i8**
+// CHECK-LP32: store i8* %{{.*}}, i8** %{{.*}}
More information about the cfe-commits
mailing list