diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-09 19:15:10 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-09 19:15:10 +0000 |
| commit | 525f34133d84cafcb0b17e30a0b75cd65f746770 (patch) | |
| tree | c8759b4b33caf020382b758c84bd588905a90b1f /clang | |
| parent | f2aa7078954c5c7cca74cc1cc2cc61844e2b88bf (diff) | |
| download | bcm5719-llvm-525f34133d84cafcb0b17e30a0b75cd65f746770.tar.gz bcm5719-llvm-525f34133d84cafcb0b17e30a0b75cd65f746770.zip | |
Code gen test for a previous patch for
radar 7709015
llvm-svn: 98073
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CodeGenObjC/id-isa-codegen.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjC/id-isa-codegen.m b/clang/test/CodeGenObjC/id-isa-codegen.m index e893aaa4f3c..a1f3d66a59e 100644 --- a/clang/test/CodeGenObjC/id-isa-codegen.m +++ b/clang/test/CodeGenObjC/id-isa-codegen.m @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -emit-llvm -o - %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,4 +64,10 @@ id Test2() { ((id)cat)->isa = dynamicSubclass; } @end +// CHECK-LP64: %tmp2 = load i8** % +// CHECK-LP64: %1 = bitcast i8* %tmp2 to i8** +// CHECK-LP64: store i8* %tmp, i8** %1 +// CHECK-LP32: %tmp2 = load i8** % +// CHECK-LP32: %1 = bitcast i8* %tmp2 to i8** +// CHECK-LP32: store i8* %tmp, i8** %1 |

