]> granicus.if.org Git - clang/commitdiff
See if this test makes it though buildbot.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 9 Mar 2010 21:50:08 +0000 (21:50 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 9 Mar 2010 21:50:08 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98087 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/id-isa-codegen.m

index cc71e7c6d000c7ceaa1406800afbb4d387e943db..12a7b396bfdf0d6ffb565358b943b1d0477abb19 100644 (file)
@@ -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 Test2() {
     ((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** %{{.*}}