aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-07-31 19:58:03 +0100
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:20:28 -0300
commit54aec98b4d5de8ab616ae17ffdbdeb049ca797d5 (patch)
tree259cbada7090075c8908d05f2836a3c623fcf138
parent8c95f6d50327bf25fb3d2e58a41c9bb9158d1993 (diff)
downloadgcc-54aec98b4d5de8ab616ae17ffdbdeb049ca797d5.zip
gcc-54aec98b4d5de8ab616ae17ffdbdeb049ca797d5.tar.gz
gcc-54aec98b4d5de8ab616ae17ffdbdeb049ca797d5.tar.bz2
libstdc++: Ensure c++NN effective-target present in more tests
Add effective-target keywords to tests that would fail for certain standard modes without the -std=gnu++NN option. libstdc++-v3/ChangeLog: * testsuite/18_support/set_terminate.cc: Require C++11 or higher. * testsuite/28_regex/simple_c++11.cc: Likewise. * testsuite/tr1/headers/c++200x/complex.cc: Likewise. * testsuite/24_iterators/headers/iterator/synopsis.cc: Require C++14 or lower.
-rw-r--r--libstdc++-v3/testsuite/18_support/set_terminate.cc2
-rw-r--r--libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc2
-rw-r--r--libstdc++-v3/testsuite/28_regex/simple_c++11.cc2
-rw-r--r--libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/18_support/set_terminate.cc b/libstdc++-v3/testsuite/18_support/set_terminate.cc
index 4df6e06..b832f30 100644
--- a/libstdc++-v3/testsuite/18_support/set_terminate.cc
+++ b/libstdc++-v3/testsuite/18_support/set_terminate.cc
@@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++11" }
-// { dg-do run }
+// { dg-do run { target c++11 } }
#include <exception>
#include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc
index e0b364c..53bd9c9 100644
--- a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc
+++ b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis.cc
@@ -1,5 +1,5 @@
// { dg-options "-std=gnu++98" }
-// { dg-do compile }
+// { dg-do compile { target { ! c++17 } } }
// { dg-require-normal-namespace "" }
// Copyright (C) 2007-2020 Free Software Foundation, Inc.
diff --git a/libstdc++-v3/testsuite/28_regex/simple_c++11.cc b/libstdc++-v3/testsuite/28_regex/simple_c++11.cc
index 056966b..8b3fda5 100644
--- a/libstdc++-v3/testsuite/28_regex/simple_c++11.cc
+++ b/libstdc++-v3/testsuite/28_regex/simple_c++11.cc
@@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++11" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
#include <regex>
diff --git a/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc
index 9eb9d33..652b534 100644
--- a/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc
+++ b/libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc
@@ -1,5 +1,5 @@
-// { dg-do compile }
// { dg-options "-std=gnu++11" }
+// { dg-do compile { target c++11 } }
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
//