]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++-v3 testsuite: fix malformed dg-require-static-libstdcxx directives
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 28 Mar 2025 00:00:34 +0000 (20:00 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 28 Mar 2025 00:00:34 +0000 (20:00 -0400)
I believe these don't get detected by DejaGnu's regexp.

Found by dg-lint.

libstdc++-v3/ChangeLog:
* testsuite/17_intro/shared_with_static_deps.cc: Fix malformed
dg-require-static-libstdcxx directive.
* testsuite/17_intro/static.cc: Likewise.
* testsuite/18_support/type_info/110572.cc: Likewise.
* testsuite/20_util/to_chars/4.cc: Likewise.
* testsuite/std/time/tzdb_list/pr118811.cc: Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
libstdc++-v3/testsuite/17_intro/shared_with_static_deps.cc
libstdc++-v3/testsuite/17_intro/static.cc
libstdc++-v3/testsuite/18_support/type_info/110572.cc
libstdc++-v3/testsuite/20_util/to_chars/4.cc
libstdc++-v3/testsuite/std/time/tzdb_list/pr118811.cc

index 9491bbcd5741651e58267fad1d9f0423e0bed9c5..a84c110ab52c12f2a9562a1be6f762fc5a9de587 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do link }
-// { dg-require-static-libstdcxx }
+// { dg-require-static-libstdcxx "" }
 // { dg-require-sharedlib "" }
 // { dg-require-effective-target fpic }
 // { dg-options "-shared -fPIC -static-libgcc -static-libstdc++" }
index ab0cf279d99438a5c0d69d44421b871259997cdf..26b34c819d526b305e3e590ced3f64aa7eeacf9e 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run { target c++11 } }
-// { dg-require-static-libstdcxx }
+// { dg-require-static-libstdcxx "" }
 // { dg-options "-static-libstdc++" }
 
 // Copyright (C) 2012-2025 Free Software Foundation, Inc.
index f727653adfb10dedc9039801d01e33441b2fff4e..5a05078510fe7a0ac22a1d68697ba06707735fba 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-options "-static-libstdc++" }
 // { dg-do link }
-// { dg-require-static-libstdcxx }
+// { dg-require-static-libstdcxx "" }
 // { dg-require-cpp-feature-test __cpp_rtti }
 
 #include <typeinfo>
index 3d76d56912877f114525e63165a444f59c1ca4a5..65abfaaff95270a19fd8f71c2ad7ebeea0cd8ff4 100644 (file)
@@ -17,7 +17,7 @@
 
 // { dg-do link { target c++17 } }
 // { dg-require-effective-target ieee_floats }
-// { dg-require-static-libstdcxx }
+// { dg-require-static-libstdcxx "" }
 // { dg-additional-options "-static-libstdc++" }
 
 // Verify the Ryu symbol generic_to_chars doesn't inadvertently leak into
index 3968be3f0eca1bd1cf8771a69c72e9af6db75857..fe86602ecce9d28d1ae5727a153643918697ddaa 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do run { target c++20 } }
 // { dg-require-effective-target tzdb }
 // { dg-require-effective-target cxx11_abi }
-// { dg-require-static-libstdcxx }
+// { dg-require-static-libstdcxx "" }
 // { dg-additional-options "-static-libstdc++" }
 
 #include <chrono>