1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2 3 @interface TestClass 4 { 5 int _isItIsOrIsItAint; 6 } 7 @property (readonly) int itIsOrItAint; 8 -(void) doSomething; 9 @end 10 11 @interface TestClass() 12 @property (readwrite) int itIsOrItAint; 13 @end 14 15 @implementation TestClass 16 @synthesize itIsOrItAint = _isItIsOrIsItAint; 17 18 -(void) doSomething 19 { 20 int i = [self itIsOrItAint]; 21 22 [self setItIsOrItAint:(int)1]; 23 } 24 @end 25