Debian Codegraph @

libstdc++-v3/testsuite/std/time/format/pr117085.cc

raw
1 // { dg-do run { target c++20 } }
2 // { dg-require-namedlocale "fr_FR.ISO8859-1" }
3
4 #include <chrono>
5 #include <locale>
6 #include <testsuite_hooks.h>
7
8 void
9 test_c()
10 {
11 std::locale::global(std::locale(ISO_8859(1,fr_FR)));
12 auto s = std::format("{:L%c}", std::chrono::sys_seconds());
13 VERIFY( ! s.starts_with("Thu") );
14 }
15
16 int main()
17 {
18 test_c();
19 }