Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/c23-trigraphs-1.c

raw
1 /* Test trigraphs not supported in C23. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 const char a[] = "??=??(??/??/??)??'??<??!??>??-";
6 const char b[] = "?""?=?""?(?""?/?""?/?""?)?""?'?""?<?""?!?""?>?""?-";
7
8 _Static_assert (sizeof a == sizeof b, "checking trigraph conversions");
9
10 /* { dg-prune-output "\\\[-Wtrigraphs" } */