diff mbox series

[pushed] testsuite, Objective-C : Amend PR23214 for Darwin11.

Message ID CDA5163D-B141-4214-9678-8A66B08144DF@sandoe.co.uk
State New
Headers show
Series [pushed] testsuite, Objective-C : Amend PR23214 for Darwin11. | expand

Commit Message

Iain Sandoe Nov. 14, 2020, 9:23 p.m. UTC
Hi,

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.

tested on x86_64-darwin11 and x86_64-darwin16
pushed to master,
thanks
Iain

gcc/testsuite/ChangeLog:

	* objc.dg/pr23214.m: Use Object as the root object before
	Darwin12 (and NSObject after).
---
  gcc/testsuite/objc.dg/pr23214.m | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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 <objc/Protocol.h>
  #define OBJECT NSObject
  #else