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