From 4c275e83ddc5f0c42eac6bdb793d6c203b7acec7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Dumont?= Date: Mon, 14 Dec 2020 22:21:47 +0100 Subject: [PATCH] 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. --- libstdc++-v3/testsuite/23_containers/array/debug/back1_neg.cc | 2 +- libstdc++-v3/testsuite/23_containers/array/debug/front1_neg.cc | 2 +- .../23_containers/array/debug/square_brackets_operator1_neg.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2