Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz!
[clang.git] / test / SemaObjC / synthesize-setter-contclass.m
blob36967d458e36a30c1b757a1533709990eca9c944
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
3 @interface TestClass 
5  int _isItIsOrIsItAint;
7 @property (readonly) int itIsOrItAint;
8 -(void) doSomething;
9 @end
11 @interface TestClass()
12 @property (readwrite) int itIsOrItAint;
13 @end
15 @implementation TestClass
16 @synthesize itIsOrItAint = _isItIsOrIsItAint;
18 -(void) doSomething
20   int i = [self itIsOrItAint];
22  [self setItIsOrItAint:(int)1];
24 @end