diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-05-18 15:36:29 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-05-18 15:36:29 +0100 |
commit | 214c0fe930511530e899e02ba14658544d498c4f (patch) | |
tree | b453fed34209ca6046493d5211774c21808792f8 /libstdc++-v3 | |
parent | 375d51b87d636d002fb273e65793e5affa10a4e1 (diff) | |
download | gcc-214c0fe930511530e899e02ba14658544d498c4f.tar.gz |
Add c++11 effective target to tests for C++11 features
Backport from mainline
2016-08-17 Jonathan Wakely <jwakely@redhat.com>
* testsuite/20_util/tuple/67844.cc: Require c++11 effective target.
* testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Likewise.
* testsuite/27_io/rvalue_streams.cc: Likewise.
From-SVN: r248222
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/tuple/67844.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/rvalue_streams.cc | 2 |
4 files changed, 11 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a2db33d0582..f7a61d12875 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,6 +1,13 @@ 2017-05-18 Jonathan Wakely <jwakely@redhat.com> Backport from mainline + 2016-08-17 Jonathan Wakely <jwakely@redhat.com> + + * testsuite/20_util/tuple/67844.cc: Require c++11 effective target. + * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Likewise. + * testsuite/27_io/rvalue_streams.cc: Likewise. + + Backport from mainline 2016-08-02 Jonathan Wakely <jwakely@redhat.com> * testsuite/18_support/bad_exception/23591_thread-1.c: Skip test if diff --git a/libstdc++-v3/testsuite/20_util/tuple/67844.cc b/libstdc++-v3/testsuite/20_util/tuple/67844.cc index 0416a51a202..d515b7bebb3 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/67844.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/67844.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // Copyright (C) 2015-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc index 39a4f73c1d4..d3162ecf561 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc @@ -1,3 +1,5 @@ +// { dg-do run { target c++11 } } + // Copyright (C) 2015-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free diff --git a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc index eba5bc35961..bff6e5ee3dc 100644 --- a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc +++ b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do run } +// { dg-do run { target c++11 } } #include <sstream> #include <string> |