From ff58436a985f06dfc87cdd54114f64b272b557c9 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 1 Jul 2019 10:49:58 +1000 Subject: [PATCH] cxx_stdcxxfs: Instantiate more code in the linking test clang requires more instantiations than we currently have to exercise their filesystem library. --- nc_cxx_stdcxxfs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nc_cxx_stdcxxfs.cpp b/nc_cxx_stdcxxfs.cpp index d7d4a79..7c66705 100644 --- a/nc_cxx_stdcxxfs.cpp +++ b/nc_cxx_stdcxxfs.cpp @@ -1,4 +1,5 @@ #include +#include int main (int argc, char **argv) @@ -6,6 +7,9 @@ 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; }