Debian Codegraph @

libstdc++-v3/testsuite/27_io/filesystem/path/factory/u8path-depr.cc

raw
1 // { dg-do compile { target c++20 } }
2
3 #include <filesystem>
4
5 namespace fs = std::filesystem;
6
7 const char* s = "";
8 auto p1 = fs::u8path(s); // { dg-warning "deprecated" }
9 auto p2 = fs::u8path(s, s); // { dg-warning "deprecated" }
10
11 #if __cpp_lib_char8_t
12 const char8_t* u = u8"";
13 #else
14 const char* u = u8"";
15 #endif
16 auto p3 = fs::u8path(u); // { dg-warning "deprecated" }
17 auto p4 = fs::u8path(u, u); // { dg-warning "deprecated" }