From: Jonathan Wakely Date: Mon, 1 Aug 2016 12:18:18 +0000 (+0100) Subject: Limit std::tuple tests to run for C++11 and later X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a02a61eeaa57db3ccd7a89e64ad3595e0b259a7d;p=gcc.git Limit std::tuple tests to run for C++11 and later * testsuite/20_util/tuple/cons/66338.cc: Limit test to C++11 and later. * testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc: Likewise. From-SVN: r238945 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 318b87ead33..328e96aaf35 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2016-08-01 Jonathan Wakely + * testsuite/20_util/tuple/cons/66338.cc: Limit test to C++11 and + later. + * testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc: + Likewise. + * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Use C++98-compatible initialization for array. diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/66338.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/66338.cc index f57eae90549..8dd29b60194 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/66338.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/66338.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-do compile { target c++11 } } + #include struct S { diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc index fe9bea678a4..a9bf9542dbf 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-do compile { target c++11 } } + #include using namespace std; @@ -27,4 +29,3 @@ int main() { tuple t1; tuple t2 = t1; } -