diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-23 18:08:50 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-23 18:08:50 +0000 |
commit | 3131496622ba071ec34d58da48d07f990430425f (patch) | |
tree | dc39acce5e6fd2c15154e65dcc9ab445acebd52d /clang/test/CodeGenObjC/complex-property.m | |
parent | 3968c6a2528e061bd95173be8eac18fda3e21230 (diff) | |
download | bcm5719-llvm-3131496622ba071ec34d58da48d07f990430425f.tar.gz bcm5719-llvm-3131496622ba071ec34d58da48d07f990430425f.zip |
Patch to implement code gen. use of compound assignent on
properties of complex type. Radar 7351147.
llvm-svn: 99299
Diffstat (limited to 'clang/test/CodeGenObjC/complex-property.m')
-rw-r--r-- | clang/test/CodeGenObjC/complex-property.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/complex-property.m b/clang/test/CodeGenObjC/complex-property.m new file mode 100644 index 00000000000..6d7cda19ec4 --- /dev/null +++ b/clang/test/CodeGenObjC/complex-property.m @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s +// rdar: // 7351147 + +@interface A +@property __complex int COMPLEX_PROP; +@end + +void f0(A *a) { + _Complex int a1 = 25 + 10i; + a.COMPLEX_PROP += a1; +} + +// CHECK-LP64: internal global [13 x i8] c"COMPLEX_PROP +// CHECK-LP64: internal global [17 x i8] c"setCOMPLEX_PROP |