]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/synthesize-setter-contclass.m
Import Clang, at r72732.
[FreeBSD/FreeBSD.git] / test / SemaObjC / synthesize-setter-contclass.m
1 // RUN: clang-cc  -fsyntax-only -verify %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