Skip C tests if test flags include C++ options
authorJonathan Wakely <jwakely@redhat.com>
Tue, 2 Aug 2016 13:32:26 +0000 (14:32 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 2 Aug 2016 13:32:26 +0000 (14:32 +0100)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c
libstdc++-v3/testsuite/abi/header_cxxabi.c

index 4e92bfffb51cd7ccb52d797f5d39be058b21422b..e6c2912d2f233df1a04e40feca1627da0a5365e9 100644 (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.
index fd1a76cbd31797ed0ea1116515f63847bd317efc..6e5138b27d91a5a18efbffb4c982334799a87384 100644 (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.
index b424d8f8a993ef4b6c5252962309ed4c50bcbca8..3b1a7dceda2b4fe4578ec2f6b112d3ab63b292ce 100644 (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.
 //