]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Objective-C : Amend PR23214 for Darwin11.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 14 Nov 2020 21:16:37 +0000 (21:16 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 14 Nov 2020 21:20:46 +0000 (21:20 +0000)
The test needs to use Object rather than NSObject on this and earlier
OS versions. Although the PR reports against the GNU runtime, we run
this on NeXT as well.

gcc/testsuite/ChangeLog:

* objc.dg/pr23214.m: Use Object as the root object before
Darwin12 (and NSObject after).

gcc/testsuite/objc.dg/pr23214.m

index 341a2837da5b9f45671a552c90a30dc379fcf29e..56cdc0251613bde2893fd99aceae65f85402b2b3 100644 (file)
@@ -7,7 +7,7 @@
 
 #if defined (__NEXT_RUNTIME__) && defined(__OBJC2__) \
     && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
-    && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
+    && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1080
 #include <objc/Protocol.h>
 #define OBJECT NSObject
 #else