summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/complex-property.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-03-23 18:08:50 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-03-23 18:08:50 +0000
commit3131496622ba071ec34d58da48d07f990430425f (patch)
treedc39acce5e6fd2c15154e65dcc9ab445acebd52d /clang/test/CodeGenObjC/complex-property.m
parent3968c6a2528e061bd95173be8eac18fda3e21230 (diff)
downloadbcm5719-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.m14
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
OpenPOWER on IntegriCloud