2012-07-25 15:26:32 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class -Wobjc-interface-ivars %s
|
2012-05-16 00:33:04 +08:00
|
|
|
// rdar://10763173
|
|
|
|
|
|
|
|
@interface I
|
|
|
|
{
|
2012-05-16 01:43:16 +08:00
|
|
|
@protected int P_IVAR; // expected-warning {{declaration of ivars in the interface is deprecated}}
|
2012-05-16 00:33:04 +08:00
|
|
|
|
2012-05-16 01:43:16 +08:00
|
|
|
@public int PU_IVAR; // expected-warning {{declaration of ivars in the interface is deprecated}}
|
2012-05-16 00:33:04 +08:00
|
|
|
|
2012-05-16 01:43:16 +08:00
|
|
|
@private int PRV_IVAR; // expected-warning {{declaration of ivars in the interface is deprecated}}
|
2012-05-16 00:33:04 +08:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface I()
|
|
|
|
{
|
|
|
|
int I1;
|
|
|
|
int I2;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface I()
|
|
|
|
{
|
|
|
|
int I3, I4;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
{
|
|
|
|
int I5;
|
|
|
|
int I6;
|
|
|
|
}
|
|
|
|
@end
|