1 /* Test instance variable visibility. */
2 /* Author: Dimitris Papavasiliou <dpapavas@gmail.com>. */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-fivar-visibility=public" } */
7 @interface MySuperClass
13 @implementation MySuperClass
17 @interface MyClass : MySuperClass
20 @implementation MyClass
23 @interface MyOtherClass
24 - (void) test: (MyClass *) object;
27 @implementation MyOtherClass
28 - (void) test: (MyClass *) object
32 /* someivar is public so we shouldn't get any errors here. */