Patrick Beard | b2f6820 | 2012-04-06 18:12:22 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
Fariborz Jahanian | 50c314c | 2009-04-15 19:19:03 +0000 | [diff] [blame] | 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 |