From: Jonathan Wakely Date: Fri, 1 Sep 2023 20:19:36 +0000 (+0100) Subject: libstdc++: Add missing target selector to std::expected test X-Git-Tag: basepoints/gcc-15~6488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c34ad4bc1970dc168b0081edf9994d108ff0f130;p=thirdparty%2Fgcc.git libstdc++: Add missing target selector to std::expected test This test should use a target selector of c++23 so that the explicit -std=gnu++23 option can be removed, to allow testing with later standards too. libstdc++-v3/ChangeLog: * testsuite/20_util/expected/bad.cc: Add missing target selector. --- diff --git a/libstdc++-v3/testsuite/20_util/expected/bad.cc b/libstdc++-v3/testsuite/20_util/expected/bad.cc index 17bc6d69e886..e5d7ba4afb04 100644 --- a/libstdc++-v3/testsuite/20_util/expected/bad.cc +++ b/libstdc++-v3/testsuite/20_util/expected/bad.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++23" } -// { dg-do compile } +// { dg-do compile { target c++23 } } #include