aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/c23-ucnid-1.c
blob: cb811bc2c2213871844ab5245fd5861169fc88b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test C23 (= Unicode) rules for characters in identifiers.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c23 -pedantic-errors" } */

\u00A8 /* { dg-error "is not valid in an identifier" } */

/* The requirement for NFC only applies in identifiers, not pp-numbers.  */

A\u0300 /* { dg-error "not in NFC" } */
\u00ffA\u0300 /* { dg-error "not in NFC" } */

0A\u0300 /* { dg-warning "not in NFC" } */
.1A\u0300 /* { dg-warning "not in NFC" } */