1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class -Wobjc-interface-ivars %s 2 3@interface I 4{ 5 @protected int P_IVAR; // expected-warning {{declaration of instance variables in the interface is deprecated}} 6 7 @public int PU_IVAR; // expected-warning {{declaration of instance variables in the interface is deprecated}} 8 9 @private int PRV_IVAR; // expected-warning {{declaration of instance variables in the interface is deprecated}} 10} 11@end 12 13@interface I() 14{ 15 int I1; 16 int I2; 17} 18@end 19 20@interface I() 21{ 22 int I3, I4; 23} 24@end 25 26@implementation I 27{ 28 int I5; 29 int I6; 30} 31@end 32