1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 @property (readonly) int x;
10 -(void) setOk:(int)arg;
16 a.x = 10; // expected-error {{assigning to property with 'readonly' attribute not allowed}}
18 b.x = 10; // expected-error {{setter method is needed to assign to object using property assignment syntax}}
35 @interface NSWindow (Category)
36 -(void)methodToMakeClangCrash;
39 @implementation NSWindow (Category)
40 -(void)methodToMakeClangCrash
42 self.frame = NSMakeRect(); // expected-error {{setter method is needed to assign to object using property assignment syntax}}