aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/named-universal-char-escape-2.c
blob: 4b1af844a3de02edbfee0c52f8ca7ef076dd8241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* P2071R2 - Named universal character escapes */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -Wno-c++-compat" { target c } } */
/* { dg-options "-std=c++23" { target c++ } } */

int jalape\N{LATIN SMALL LETTER N WITH TILDE}o = 42;

int
caf\N{LATIN SMALL LETTER E WITH ACUTE} (void)
{
  return jalape\u00F1o;
}

int
test (void)
{
  return caf\u00e9 ();
}