]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenObjC/atomic-aggregate-property.m
Update clang to r103004.
[FreeBSD/FreeBSD.git] / test / CodeGenObjC / atomic-aggregate-property.m
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10  -fobjc-nonfragile-abi -fobjc-gc -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s
2 // rdar: // 7849824
3
4 struct s {
5   double a, b, c, d;  
6 };
7
8 struct s1 {
9     int i;
10     id j;
11     id k;
12 };
13
14 @interface A 
15 @property (readwrite) double x;
16 @property (readwrite) struct s y;
17 @property (nonatomic, readwrite) struct s1 z;
18 @end
19
20 @implementation A
21 @synthesize x;
22 @synthesize y;
23 @synthesize z;
24 @end
25
26 // CHECK-LP64: call void @objc_copyStruct
27 // CHECK-LP64: call void @objc_copyStruct
28 // CHECK-LP64: call void @objc_copyStruct