From: François Dumont Date: Mon, 14 Dec 2020 21:21:47 +0000 (+0100) Subject: libstdc++: Make tests with Undefined Behavior in C++11 UNSUPPORTED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c275e83ddc5f0c42eac6bdb793d6c203b7acec7;p=gcc.git libstdc++: Make tests with Undefined Behavior in C++11 UNSUPPORTED 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. --- diff --git a/libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc b/libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc index 8216dea3cfb..ca3172e9e39 100644 --- a/libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc @@ -16,7 +16,7 @@ // . // // { dg-options "-D_GLIBCXX_ASSERTIONS" } -// { dg-do run { target c++11 xfail *-*-* } } +// { dg-do run { target c++14 xfail *-*-* } } #include diff --git a/libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc b/libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc index c6871093d2a..0f102103fe5 100644 --- a/libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc @@ -16,7 +16,7 @@ // . // // { dg-options "-D_GLIBCXX_ASSERTIONS" } -// { dg-do run { target c++11 xfail *-*-* } } +// { dg-do run { target c++14 xfail *-*-* } } #include diff --git a/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc b/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc index 3f1ea128902..130325620e8 100644 --- a/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc @@ -16,7 +16,7 @@ // . // // { dg-options "-D_GLIBCXX_ASSERTIONS" } -// { dg-do run { target c++11 xfail *-*-* } } +// { dg-do run { target c++14 xfail *-*-* } } #include