gcc/testsuite/gcc.dg/cpp/c23-ucnid-1.c
raw| 1 | /* Test C23 (= Unicode) rules for characters in identifiers. */ |
| 2 | /* { dg-do preprocess } */ |
| 3 | /* { dg-options "-std=c23 -pedantic-errors" } */ |
| 4 | |
| 5 | \u00A8 /* { dg-error "is not valid in an identifier" } */ |
| 6 | |
| 7 | /* The requirement for NFC only applies in identifiers, not pp-numbers. */ |
| 8 | |
| 9 | A\u0300 /* { dg-error "not in NFC" } */ |
| 10 | \u00ffA\u0300 /* { dg-error "not in NFC" } */ |
| 11 | |
| 12 | 0A\u0300 /* { dg-warning "not in NFC" } */ |
| 13 | .1A\u0300 /* { dg-warning "not in NFC" } */ |