mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-21 01:55:15 +08:00
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.
This commit is contained in:
parent
a92e0f58d8
commit
9d613af2b4
@ -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>
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user