]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Use dg-require-filesystem-ts in link test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 31 Aug 2023 17:35:12 +0000 (18:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 3 Oct 2023 16:22:18 +0000 (17:22 +0100)
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

index d58de461090d79e2c733f51a9a6193b523758d0c..73742df93b054c1e6c8edcd163ea966c9bc19e94 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do link { target c++17 } }
 // { dg-options "-fkeep-inline-functions" }
+// { dg-require-filesystem-ts "" }
 
 #include <filesystem>
 int main()