aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc/execute/class-14.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc/execute/class-14.m')
-rw-r--r--gcc/testsuite/objc/execute/class-14.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/objc/execute/class-14.m b/gcc/testsuite/objc/execute/class-14.m
index 2827031358c..7d02c36df7a 100644
--- a/gcc/testsuite/objc/execute/class-14.m
+++ b/gcc/testsuite/objc/execute/class-14.m
@@ -2,6 +2,8 @@
#include <objc/objc.h>
#include <objc/objc-api.h>
+#include "next_mapping.h"
+
/* Tests creating a root class and a subclass with a class accessor
methods and a subclass overriding the superclass' implementation,
and using self to call another method of itself */
@@ -13,6 +15,9 @@
@end
@implementation RootClass
+#ifdef __NEXT_RUNTIME__
++ initialize { return self; }
+#endif
@end
static int class_variable = 0;