aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/objc.dg/ivar-scope-4.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/ivar-scope-4.m b/gcc/testsuite/objc.dg/ivar-scope-4.m
index f720972..5fc29f9 100644
--- a/gcc/testsuite/objc.dg/ivar-scope-4.m
+++ b/gcc/testsuite/objc.dg/ivar-scope-4.m
@@ -18,6 +18,7 @@ int someivar = 1;
int someivar;
}
++ (id) initialize;
+ (id) alloc;
- (id) init;
- (int) getGlobal;
@@ -26,6 +27,11 @@ int someivar = 1;
@end
@implementation MyClass
++ (id) initialize
+{
+ return self;
+}
+
+ (id) alloc
{
return class_createInstance (self, 0);