1 /* { dg-do compile } */
3 #import "../objc-obj-c++-shared/TestsuiteObject.h"
5 @interface obj : TestsuiteObject
9 @package /* { dg-warning ".@package. presently has the same effect as .@public." } */
17 - (void) setValue: (int)number;
20 @implementation obj : TestsuiteObject
22 - (int) value { return v1; }
23 - (void) setValue: (int)number { v1 = number; }
33 a->v3 = [a value] - a->v2; /* { dg-warning ".v3. is @protected" } */
34 a->v4 = a->v3 - 1; /* { dg-warning ".v4. is @private" } */
35 /* { dg-warning ".v3. is @protected" "" { target *-*-* } .-1 } */