summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ucnid-7.c
blob: 1dbcb9ac77b28c3282ac8f533569b9deb6308e2e (plain)
1
2
3
4
5
6
7
8
/* Verify diagnostics for extended identifiers refer to UCNs (in the C
   locale).  */
/* { dg-do compile } */
/* { dg-options "-std=c99 -fextended-identifiers" } */
/* { dg-require-ascii-locale "" } */

void *p = &\u00e9; /* { dg-error "'\\\\U000000e9' undeclared" } */
void *q = &\u1e00; /* { dg-error "'\\\\U00001e00' undeclared" } */