diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-09 21:50:08 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-09 21:50:08 +0000 |
commit | a4c779eb18b1b72d4ff52d7bf6849ccedfb3b725 (patch) | |
tree | 3419f2a94cb4051c41d3f78af545569b5ec92925 | |
parent | 7573f8b2f90ef65a253f7355fc466c93f0bc9832 (diff) |
See if this test makes it though buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenObjC/id-isa-codegen.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGenObjC/id-isa-codegen.m b/test/CodeGenObjC/id-isa-codegen.m index cc71e7c6d0..12a7b396bf 100644 --- a/test/CodeGenObjC/id-isa-codegen.m +++ b/test/CodeGenObjC/id-isa-codegen.m @@ -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** %{{.*}} |