[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaObjC / synthesize-setter-contclass.m
blobdf954db2dbb51facbe9cf962c68019d08d471dd6
1 // RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
4 @interface TestClass 
6  int _isItIsOrIsItAint;
8 @property (readonly) int itIsOrItAint;
9 -(void) doSomething;
10 @end
12 @interface TestClass()
13 @property (readwrite) int itIsOrItAint;
14 @end
16 @implementation TestClass
17 @synthesize itIsOrItAint = _isItIsOrIsItAint;
19 -(void) doSomething
21   int i = [self itIsOrItAint];
23  [self setItIsOrItAint:(int)1];
25 @end