repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wformat-char8_t-1.C
blob
ba6f388a210050e51c61b8f60a8e55c837358d36
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
}