diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-08-01 13:18:18 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-08-01 13:18:18 +0100 |
commit | a02a61eeaa57db3ccd7a89e64ad3595e0b259a7d (patch) | |
tree | d011fe46b826dc2bb6eb1f6ce92d24eaf63b3660 | |
parent | 98b5fb3cbccebf0560d22de0421d4f13aa23e328 (diff) | |
download | gcc-a02a61eeaa57db3ccd7a89e64ad3595e0b259a7d.zip gcc-a02a61eeaa57db3ccd7a89e64ad3595e0b259a7d.tar.gz gcc-a02a61eeaa57db3ccd7a89e64ad3595e0b259a7d.tar.bz2 |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/tuple/cons/66338.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 318b87e..328e96a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2016-08-01 Jonathan Wakely <jwakely@redhat.com> + * 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 f57eae9..8dd29b6 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 // <http://www.gnu.org/licenses/>. +// { dg-do compile { target c++11 } } + #include <tuple> 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 fe9bea6..a9bf954 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 // <http://www.gnu.org/licenses/>. +// { dg-do compile { target c++11 } } + #include <tuple> using namespace std; @@ -27,4 +29,3 @@ int main() { tuple<Something> t1; tuple<Something> t2 = t1; } - |