]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix backported test [PR112490]
authorPatrick Palka <ppalka@redhat.com>
Tue, 27 May 2025 21:49:30 +0000 (17:49 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 27 May 2025 21:49:30 +0000 (17:49 -0400)
On the 13 branch and older, C++ >= 20 tests need an explicit dg-options
directive specifying the -std flag, otherwise they won't run by default.

PR libstdc++/112490

libstdc++-v3/ChangeLog:

* testsuite/24_iterators/const_iterator/112490.cc: Add
dg-options directive.

libstdc++-v3/testsuite/24_iterators/const_iterator/112490.cc

index 9bb154847cff41ff6fe002cfcf4c83dd2174e1ae..e6e74eb675d498f8edeb2e9138ddb05186d63b70 100644 (file)
@@ -1,3 +1,4 @@
+// { dg-options "-std=gnu++23" }
 // { dg-do compile { target c++23 } }
 
 // PR libstdc++/112490 - infinite meta error in