From e8e1d999363c76f6ad654907a68a0dc7d2ffc29a Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 31 Aug 2023 18:35:12 +0100 Subject: [PATCH] libstdc++: Use dg-require-filesystem-ts in link test This test expects to be able to link, which fails if there are undefined references to chdir, mkdir etc. in fs_ops.o in the libstdc++.a archive. libstdc++-v3/ChangeLog: * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for filesystem support. (cherry picked from commit c07d82c12f2f17427a89188abad69af195590309) --- libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc index d58de461090d..73742df93b05 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/path/108636.cc @@ -1,5 +1,6 @@ // { dg-do link { target c++17 } } // { dg-options "-fkeep-inline-functions" } +// { dg-require-filesystem-ts "" } #include int main() -- 2.47.2