From: Iain Sandoe Date: Wed, 7 Oct 2020 15:20:48 +0000 (+0100) Subject: testsuite, Objective-C++ : Skip an ancient test on newer systems. X-Git-Tag: basepoints/gcc-12~4461 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b468b7556fd96cf5bdc56ae30131980a3d596ae;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm b/gcc/testsuite/obj-c++.dg/cxx-ivars-3.mm index 18b671d122a3..07123559d72c 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 #include #include "../objc-obj-c++-shared/F-NSObject.h" +#include //extern "C" { int printf(const char *,...); } #define CHECK_IF(expr) if(!(expr)) abort()