From: Iain Sandoe Date: Sat, 14 Nov 2020 21:16:37 +0000 (+0000) Subject: testsuite, Objective-C : Amend PR23214 for Darwin11. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=406b452dc0e1254684365e3cec026258a39ba6c1;p=gcc.git testsuite, Objective-C : Amend PR23214 for Darwin11. 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). --- diff --git a/gcc/testsuite/objc.dg/pr23214.m b/gcc/testsuite/objc.dg/pr23214.m index 341a2837da5..56cdc025161 100644 --- a/gcc/testsuite/objc.dg/pr23214.m +++ b/gcc/testsuite/objc.dg/pr23214.m @@ -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 #define OBJECT NSObject #else