From: Jonathan Wakely Date: Wed, 17 Aug 2016 19:23:15 +0000 (+0100) Subject: Add c++11 effective target to tests for C++11 features X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7717203789e04e2aa088d896383298e35911f26;p=gcc.git Add c++11 effective target to tests for C++11 features * 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: r239545 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d8c5fe377d4..ec595d8692b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2016-08-17 Jonathan Wakely + * 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. + * testsuite/26_numerics/complex/literals/types.cc: Add comment. * testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc: 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 7f6423913d8..39ae516312b 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 5918595acbc..f232c11d18d 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 // . -// { dg-do run } +// { dg-do run { target c++11 } } #include #include