Limit std::tuple tests to run for C++11 and later
authorJonathan Wakely <jwakely@redhat.com>
Mon, 1 Aug 2016 12:18:18 +0000 (13:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 1 Aug 2016 12:18:18 +0000 (13:18 +0100)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/tuple/cons/66338.cc
libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc

index 318b87ead330f103d5e826f4dfdbe73624e99829..328e96aaf3511c98d8fa0cc046b0c442c8206e77 100644 (file)
@@ -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.
 
index f57eae90549300dd64615f60fec5971ffd72c483..8dd29b601946867ced6426272d6fb5c33d7f7255 100644 (file)
@@ -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 {
index fe9bea678a47fe9165404ca571fc53a9da25f9c2..a9bf9542dbf0199b9634572fdb06e9620d0a94bf 100644 (file)
@@ -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;
 }
-