summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/unoptimized-setter.m
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-10-15 22:23:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-10-15 22:23:53 +0000
commitbd847cc5622cabc9abb1a59e950981cdf9418f96 (patch)
tree9a6b39bba9153c91bf728efdaaa2006c5bf9dcdf /clang/test/CodeGenObjC/unoptimized-setter.m
parent345b09cb8064796467fae90c4b800923a461d308 (diff)
downloadbcm5719-llvm-bd847cc5622cabc9abb1a59e950981cdf9418f96.tar.gz
bcm5719-llvm-bd847cc5622cabc9abb1a59e950981cdf9418f96.zip
Un-revert r164907 and r164902 (+ follow-ups), 10.6 build fix to follow.
llvm-svn: 165988
Diffstat (limited to 'clang/test/CodeGenObjC/unoptimized-setter.m')
-rw-r--r--clang/test/CodeGenObjC/unoptimized-setter.m32
1 files changed, 32 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/unoptimized-setter.m b/clang/test/CodeGenObjC/unoptimized-setter.m
new file mode 100644
index 00000000000..adcf0870160
--- /dev/null
+++ b/clang/test/CodeGenObjC/unoptimized-setter.m
@@ -0,0 +1,32 @@
+// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=macosx-10.6.0 -triple x86_64-apple-macosx10.6.0 -o - | FileCheck %s
+// rdar://11858187
+
+@interface I
+// void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
+// objc_setProperty(..., NO, NO)
+@property (nonatomic, retain) id nonatomicProperty;
+
+// void objc_setProperty_nonatomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset);
+// objc_setProperty(..., NO, YES)
+@property (nonatomic, copy) id nonatomicPropertyCopy;
+
+// void objc_setProperty_atomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
+// objc_setProperty(..., YES, NO)
+@property (retain) id atomicProperty;
+
+// void objc_setProperty_atomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset);
+// objc_setProperty(..., YES, YES)
+@property (copy) id atomicPropertyCopy;
+@end
+
+@implementation I
+@synthesize nonatomicProperty;
+@synthesize nonatomicPropertyCopy;
+@synthesize atomicProperty;
+@synthesize atomicPropertyCopy;
+@end
+
+// CHECK-NOT: call void @objc_setProperty_nonatomic
+// CHECK-NOT: call void @objc_setProperty_nonatomic_copy
+// CHECK-NOT: call void @objc_setProperty_atomic
+// CHECK-NOT: call void @objc_setProperty_atomic_copy
OpenPOWER on IntegriCloud