blob: 78490c8db0d31e8dc61e60dcf0945c01b40c4963 [file] [log] [blame]
Fariborz Jahanian50c314c2009-04-15 19:19:03 +00001// 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