1 /* Test instance variable visibility. */
2 /* Author: Dimitris Papavasiliou <dpapavas@gmail.com>. */
3 /* { dg-do compile } */
6 @interface MySuperClass
12 @implementation MySuperClass
16 @interface MyClass : MySuperClass
19 @implementation MyClass
22 @interface MyOtherClass
23 - (void) test: (MyClass *) object;
26 @implementation MyOtherClass
27 - (void) test: (MyClass *) object
31 a = object->someivar; /* { dg-error "instance variable .someivar. is declared protected" } */