cxx_stdcxxfs: Instantiate more code in the linking test
clang requires more instantiations than we currently have to exercise their filesystem library.
This commit is contained in:
parent
00955b8920
commit
ff58436a98
@ -1,4 +1,5 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
@ -6,6 +7,9 @@ main (int argc, char **argv)
|
|||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
|
|
||||||
|
// Instantiating a path isn't enough for clang. We need to call a method
|
||||||
|
// implemented in the external library; like 'stem'.
|
||||||
std::filesystem::path p { "foo" };
|
std::filesystem::path p { "foo" };
|
||||||
|
std::cout << p.stem () << '\n';
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user