2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
|
2009-03-31 08:06:29 +08:00
|
|
|
@interface I
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@property int IP;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
@synthesize IP;
|
|
|
|
- (int) Meth {
|
|
|
|
return IP;
|
|
|
|
}
|
|
|
|
@end
|
2010-04-07 07:36:17 +08:00
|
|
|
|
|
|
|
// rdar: // 7823675
|
|
|
|
int f0(I *a) { return a->IP; } // expected-error {{instance variable 'IP' is protected}}
|