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