Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wformat-char8_t-1.C

raw
1 // PR c++/105626
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wformat" }
4 // { dg-additional-options "-fchar8_t" { target c++17_down } }
5
6 int main()
7 {
8 __builtin_printf((const char*) u8"test %d\n", 1); // { dg-bogus "format string" }
9 return 0;
10 }