libstdc++: Make tests with Undefined Behavior in C++11 UNSUPPORTED
authorFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 14 Dec 2020 21:21:47 +0000 (22:21 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 14 Dec 2020 21:28:38 +0000 (22:28 +0100)
libstdc++-v3/ChangeLog:

* testsuite/23_containers/array/debug/back1_neg.cc: Target c++14 because assertion
is disabled in C++11.
* testsuite/23_containers/array/debug/front1_neg.cc: Likewise.
* testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc: Likewise.

libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc
libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc
libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc

index 8216dea3cfb88766a1177d3539c29ce2b254c0eb..ca3172e9e3949d9b7906261da693ba8860b8c46c 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 //
 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++11 xfail *-*-* } }
+// { dg-do run { target c++14 xfail *-*-* } }
 
 #include <array>
 
index c6871093d2a768a7da00bd30ad4a167f96608f60..0f102103fe5a100c33c343ce0b29b2067bd1946f 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 //
 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++11 xfail *-*-* } }
+// { dg-do run { target c++14 xfail *-*-* } }
 
 #include <array>
 
index 3f1ea128902b8e05e44ac1e2504bcdf3ed65a642..130325620e8186da7368e86562704b4c4066008a 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 //
 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++1 xfail *-*-* } }
+// { dg-do run { target c++14 xfail *-*-* } }
 
 #include <array>