gcc/testsuite/c-c++-common/cpp/named-universal-char-escape-2.c
raw| 1 | /* P2071R2 - Named universal character escapes */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=gnu99 -Wno-c++-compat" { target c } } */ |
| 4 | /* { dg-options "-std=c++23" { target c++ } } */ |
| 5 | |
| 6 | int jalape\N{LATIN SMALL LETTER N WITH TILDE}o = 42; |
| 7 | |
| 8 | int |
| 9 | caf\N{LATIN SMALL LETTER E WITH ACUTE} (void) |
| 10 | { |
| 11 | return jalape\u00F1o; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | test (void) |
| 16 | { |
| 17 | return caf\u00e9 (); |
| 18 | } |