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 | dfb1eb208e401a0e5ecf2910e1a73b09aa69fd26 (patch) | |
tree | 760090d060573e9dfbc8beef2d3b1f24dde9f1c1 /test/CodeGenObjC/complex-property.m | |
parent | 19879c98d964bc67442618510af04e3457219780 (diff) |
Patch to implement code gen. use of compound assignent on
properties of complex type. Radar 7351147.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/complex-property.m')
-rw-r--r-- | test/CodeGenObjC/complex-property.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenObjC/complex-property.m b/test/CodeGenObjC/complex-property.m new file mode 100644 index 0000000000..6d7cda19ec --- /dev/null +++ b/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 |