]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add missing target selector to std::expected test
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Sep 2023 20:19:36 +0000 (21:19 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 15:04:26 +0000 (16:04 +0100)
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.

libstdc++-v3/testsuite/20_util/expected/bad.cc

index 17bc6d69e88605eb36c5c89d8345b787e2a66376..e5d7ba4afb048d756c29fff56c6b30061c696562 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-options "-std=gnu++23" }
-// { dg-do compile }
+// { dg-do compile { target c++23 } }
 
 #include <expected>