1 /* Test instance variable scope. */
2 /* Author: Dimitris Papavasiliou <dpapavas@gmail.com>. */
4 /* { dg-additional-options "-Wno-shadow-ivar" } */
5 #include "../objc-obj-c++-shared/TestsuiteObject.m"
8 extern void abort(void);
12 @interface MyClass: TestsuiteObject
20 @implementation MyClass
45 object = [[MyClass alloc] init];
47 /* Check whether the instance variable hides the global variable. */
49 if ([object get] != 2) {
53 /* Check whether the local variable hides the instance variable. */
55 if ([object getHidden] != 3) {