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