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
This commit is contained in:
Jonathan Wakely 2016-08-02 14:32:26 +01:00 committed by Jonathan Wakely
parent 8c65cd3054
commit 807bd0963e
3 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,9 @@
2016-08-02 Jonathan Wakely <jwakely@redhat.com>
* 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.

View file

@ -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.

View file

@ -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.
//