[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / clang / test / SemaObjC / arc-readonly-property-ivar-1.m
blob2b98f01e914f4caee0c51b4ace4653c49f534291
1 // RUN: %clang_cc1   -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s
2 // RUN: %clang_cc1  -x objective-c++  -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s
3 // expected-no-diagnostics
4 // rdar:// 10558871
6 @interface PP
7 @property (readonly) id ReadOnlyPropertyNoBackingIvar;
8 @property (readonly) id ReadOnlyProperty;
9 @property (readonly) id ReadOnlyPropertyX;
10 @end
12 @implementation PP {
13 __weak id _ReadOnlyProperty;
15 @synthesize ReadOnlyPropertyNoBackingIvar;
16 @synthesize ReadOnlyProperty = _ReadOnlyProperty;
17 @synthesize ReadOnlyPropertyX = _ReadOnlyPropertyX;
18 @end
20 @interface DD
21 @property (readonly) id ReadOnlyProperty;
22 @property (readonly) id ReadOnlyPropertyStrong;
23 @property (readonly) id ReadOnlyPropertyNoBackingIvar;
24 @end
26 @implementation DD {
27 __weak id _ReadOnlyProperty;
28 __strong id _ReadOnlyPropertyStrong;
30 @end