aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/arm-atomic-scalar-setter-getter.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-02-18 19:15:13 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-02-18 19:15:13 +0000
commit2846b97965e980ad2e7c8d444b82cc21d733a699 (patch)
treee9f37f59479c4cfa4c2bbebb704b45c2f495a590 /test/CodeGenObjC/arm-atomic-scalar-setter-getter.m
parentcd5b306f1b79c8a82fb0bdb4cf353021ea452fed (diff)
Objective-c armv7 API for atomic properties of
scalar types. // rdar://7761305 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/arm-atomic-scalar-setter-getter.m')
-rw-r--r--test/CodeGenObjC/arm-atomic-scalar-setter-getter.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenObjC/arm-atomic-scalar-setter-getter.m b/test/CodeGenObjC/arm-atomic-scalar-setter-getter.m
new file mode 100644
index 0000000000..2515c706a9
--- /dev/null
+++ b/test/CodeGenObjC/arm-atomic-scalar-setter-getter.m
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -triple armv7-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-ARM %s
+// rdar://7761305
+
+@interface I
+@property long long LONG_PROP;
+@end
+
+@implementation I
+@synthesize LONG_PROP;
+@end
+// CHECK-ARM: call arm_aapcscc void @objc_copyStruct(i8* %{{.*}}, i8* %{{.*}}, i32 8, i1 zeroext true, i1 zeroext false)
+// CHECK-ARM: call arm_aapcscc void @objc_copyStruct(i8* %{{.*}}, i8* %{{.*}}, i32 8, i1 zeroext true, i1 zeroext false)
+