diff options
author | David Malcolm <dmalcolm@redhat.com> | 2025-03-27 20:00:34 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2025-03-27 20:00:34 -0400 |
commit | 1ee9caf2f84832f9eefef4953758e26ab505173c (patch) | |
tree | ddc36dbe954e8895c61ea695c60793676b5def6b | |
parent | c88abca94a6abba20ba0bea32a0192d28e6f04ed (diff) | |
download | gcc-1ee9caf2f84832f9eefef4953758e26ab505173c.zip gcc-1ee9caf2f84832f9eefef4953758e26ab505173c.tar.gz gcc-1ee9caf2f84832f9eefef4953758e26ab505173c.tar.bz2 |
libstdc++-v3 testsuite: fix malformed dg-require-static-libstdcxx directives
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>
5 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/shared_with_static_deps.cc b/libstdc++-v3/testsuite/17_intro/shared_with_static_deps.cc index 9491bbc..a84c110 100644 --- a/libstdc++-v3/testsuite/17_intro/shared_with_static_deps.cc +++ b/libstdc++-v3/testsuite/17_intro/shared_with_static_deps.cc @@ -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++" } diff --git a/libstdc++-v3/testsuite/17_intro/static.cc b/libstdc++-v3/testsuite/17_intro/static.cc index ab0cf27..26b34c8 100644 --- a/libstdc++-v3/testsuite/17_intro/static.cc +++ b/libstdc++-v3/testsuite/17_intro/static.cc @@ -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. diff --git a/libstdc++-v3/testsuite/18_support/type_info/110572.cc b/libstdc++-v3/testsuite/18_support/type_info/110572.cc index f727653..5a05078 100644 --- a/libstdc++-v3/testsuite/18_support/type_info/110572.cc +++ b/libstdc++-v3/testsuite/18_support/type_info/110572.cc @@ -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> diff --git a/libstdc++-v3/testsuite/20_util/to_chars/4.cc b/libstdc++-v3/testsuite/20_util/to_chars/4.cc index 3d76d56..65abfaa 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/4.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/4.cc @@ -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 diff --git a/libstdc++-v3/testsuite/std/time/tzdb_list/pr118811.cc b/libstdc++-v3/testsuite/std/time/tzdb_list/pr118811.cc index 3968be3..fe86602 100644 --- a/libstdc++-v3/testsuite/std/time/tzdb_list/pr118811.cc +++ b/libstdc++-v3/testsuite/std/time/tzdb_list/pr118811.cc @@ -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> |