1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
6 @property (readonly) int bar;
11 foo.bar = 0; // expected-error {{assignment to readonly property}}
16 @interface rdar8747333 {
25 @interface rdar8747333 ()
29 @interface rdar8747333 ()
30 @property (readwrite, assign) NSObject *bar;
31 @property (readwrite, assign) NSObject *baz;
32 @property (readwrite, assign) NSObject *bam;
33 @property (readwrite, assign) NSObject *warn;
36 @interface rdar8747333 ()
39 - (void)setWarn : (NSObject *)val;
42 @implementation rdar8747333
43 @synthesize bar = _bar;
44 @synthesize baz = _baz;
45 @synthesize bam = _bam;