1 /* Test instance variable scope. */
2 /* Author: Dimitris Papavasiliou <dpapavas@gmail.com>. */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-fno-local-ivars" } */
12 - (void) testshadowing;
15 @implementation MyClass
20 a = self->someivar; /* No warning or error. */
21 a = someivar; /* { dg-error ".someivar. undeclared" } */
24 - (void) testshadowing
29 /* Since instance variables don't have local scope no shadowing
32 a = someivar; /* No warning. */