xref: /llvm-project/clang/test/SemaObjC/arc-readonly-property-ivar.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1  -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s
2// expected-no-diagnostics
3
4@interface PP
5@property (readonly) id ReadOnlyPropertyNoBackingIvar;
6@property (readonly) id ReadOnlyProperty;
7@property (readonly) id ReadOnlyPropertyX;
8@end
9
10@implementation PP {
11__weak id _ReadOnlyProperty;
12}
13@synthesize ReadOnlyPropertyNoBackingIvar;
14@synthesize ReadOnlyProperty = _ReadOnlyProperty;
15@synthesize ReadOnlyPropertyX = _ReadOnlyPropertyX;
16@end
17