1 /* Test that there is no problem initializing multiple static
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
6 /* { dg-additional-options "-framework Foundation" { target { { *-*-darwin* } && objc2 } } } */
8 #if defined (__NEXT_RUNTIME__) && defined(__OBJC2__) \
9 && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
10 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
11 #include <objc/Protocol.h>
12 #define OBJECT NSObject
14 #include <objc/Object.h>
16 #include <objc/Protocol.h>
19 @interface OBJECT (TS_CAT)
23 @implementation OBJECT (TS_CAT)
24 - test { return self; }
33 @interface Dummy : OBJECT <B>