2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-04-16 03:19:03 +08:00
|
|
|
|
|
|
|
@interface TestClass
|
|
|
|
{
|
|
|
|
int _isItIsOrIsItAint;
|
|
|
|
}
|
|
|
|
@property (readonly) int itIsOrItAint;
|
|
|
|
-(void) doSomething;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface TestClass()
|
|
|
|
@property (readwrite) int itIsOrItAint;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TestClass
|
|
|
|
@synthesize itIsOrItAint = _isItIsOrIsItAint;
|
|
|
|
|
|
|
|
-(void) doSomething
|
|
|
|
{
|
|
|
|
int i = [self itIsOrItAint];
|
|
|
|
|
|
|
|
[self setItIsOrItAint:(int)1];
|
|
|
|
}
|
|
|
|
@end
|