From: Jonathan Wakely Date: Tue, 2 Aug 2016 13:32:26 +0000 (+0100) Subject: Skip C tests if test flags include C++ options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=807bd0963e54b755ab053e5d1c0cceaffb616570;p=gcc.git Skip C tests if test flags include C++ options * testsuite/18_support/bad_exception/23591_thread-1.c: Skip test if options are present that aren't valid for C. * testsuite/abi/header_cxxabi.c: Likewise. From-SVN: r238988 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4e92bfffb51..e6c2912d2f2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2016-08-02 Jonathan Wakely + * testsuite/18_support/bad_exception/23591_thread-1.c: Skip test if + options are present that aren't valid for C. + * testsuite/abi/header_cxxabi.c: Likewise. + * testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/ check_value.cc: Do not add special functions to namespace std in TR1 test. diff --git a/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c b/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c index fd1a76cbd31..6e5138b27d9 100644 --- a/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c +++ b/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c @@ -1,4 +1,5 @@ // { dg-require-sharedlib "" } +// { dg-skip-if "invalid options for C" { *-*-* } { "-std=c++??" "-std=gnu++??" } } // { dg-options "-g -O2 -pthread -ldl -x c -fvtable-verify=none -Wno-pedantic" { target *-*-linux* *-*-gnu* *-*-solaris2.1[2-9]* } } // Copyright (C) 2005-2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/abi/header_cxxabi.c b/libstdc++-v3/testsuite/abi/header_cxxabi.c index b424d8f8a99..3b1a7dceda2 100644 --- a/libstdc++-v3/testsuite/abi/header_cxxabi.c +++ b/libstdc++-v3/testsuite/abi/header_cxxabi.c @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-skip-if "invalid options for C" { *-*-* } { "-std=c++??" "-std=gnu++??" } } // { dg-options "-x c" } // Copyright (C) 2006-2016 Free Software Foundation, Inc. //