]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Objective-C++ : Skip an ancient test on newer systems.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 7 Oct 2020 15:20:48 +0000 (16:20 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 15:31:53 +0000 (16:31 +0100)
This test contains elements incompatible with modern Objective-C
headers, it is only of relevance to Darwin8 or potentially on systems
with SDKs that could target Darwin8, so skip it on newer systems.

gcc/testsuite/ChangeLog:

* obj-c++.dg/cxx-ivars-3.mm: Skip for macOS >= 10.7.

gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm

index 18b671d122a3170c2f091add88ed3be26149cf1c..07123559d72cac09192172d2663101a5cfb9af7e 100644 (file)
@@ -2,14 +2,14 @@
 
 // { dg-do run { target *-*-darwin* } }
 // { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } }
-// { dg-skip-if "Headers incompatible with 10.4 APIs" { *-*-darwin1[3-8]* } { "-fnext-runtime" } { "" } }
+// { dg-skip-if "Headers incompatible with 10.4 APIs" { *-*-darwin1[1-9]* *-*-darwin2[0-9]* } { "-fnext-runtime" } { "" } }
 // { dg-additional-options "-fobjc-call-cxx-cdtors -mmacosx-version-min=10.4 -framework Foundation" }
 // This test has no equivalent or meaning for m64/ABI V2
 // { dg-xfail-run-if "No Test Avail" {  *-*-darwin* && lp64 } { "-fnext-runtime" } { "" } }
 
-#include <objc/objc-runtime.h>
 #include <stdlib.h>
 #include "../objc-obj-c++-shared/F-NSObject.h"
+#include <objc/objc-runtime.h>
 
 //extern "C" { int printf(const char *,...); }
 #define CHECK_IF(expr) if(!(expr)) abort()