1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 @property (readonly) int x;
10 -(void) setOk:(int)arg;
16 a.x = 10; // expected-error {{assignment to readonly property}}
18 b.x = 10; // expected-error {{no setter method 'setX:' for assignment to property}}
26 NSRect NSMakeRect(void);
35 @interface NSWindow (Category)
36 -(void)methodToMakeClangCrash;
39 @implementation NSWindow (Category)
40 -(void)methodToMakeClangCrash
42 self.frame = NSMakeRect(); // expected-error {{no setter method 'setFrame:' for assignment to property}}