cmake/nc_cxx_stdcxxfs.cpp
Danny Robson ff58436a98 cxx_stdcxxfs: Instantiate more code in the linking test
clang requires more instantiations than we currently have to exercise
their filesystem library.
2019-07-01 10:49:58 +10:00

16 lines
336 B
C++

#include <filesystem>
#include <iostream>
int
main (int argc, char **argv)
{
(void)argc;
(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::cout << p.stem () << '\n';
return 0;
}