1 /* Test instance variable scope. */
2 /* Author: Dimitris Papavasiliou <dpapavas@gmail.com>. */
3 /* { dg-do compile } */
6 #if defined(__has_attribute) && __has_attribute(objc_root_class)
7 __attribute__((objc_root_class))
16 @implementation MyClass
21 /* Make sure instance variables do have local scope when
22 -fno-local-ivar isn't specified. */
24 a = self->someivar; /* No warning or error. */
25 a = someivar; /* No error. */