diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-07 16:20:48 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-11 16:31:53 +0100 |
commit | 6b468b7556fd96cf5bdc56ae30131980a3d596ae (patch) | |
tree | bd958ff1264ac7f5cd00da193d69fce1c8bda73b /gcc | |
parent | fa99b56c7f3bca72c27d9bfcddf68ab9cc6a35e3 (diff) | |
download | gcc-6b468b7556fd96cf5bdc56ae30131980a3d596ae.zip gcc-6b468b7556fd96cf5bdc56ae30131980a3d596ae.tar.gz gcc-6b468b7556fd96cf5bdc56ae30131980a3d596ae.tar.bz2 |
testsuite, Objective-C++ : Skip an ancient test on newer systems.
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm b/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm index 18b671d..0712355 100644 --- a/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm +++ b/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm @@ -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() |