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