summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ucnid-14.c
blob: 8d4eb71465b21367370cb53943f83302340d4091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Test miscellaneous uses of UCNs in identifiers compile and run OK,
   with debug info enabled.  */
/* { dg-do run } */
/* { dg-options "-std=c99 -g" } */

extern void abort (void);
extern void exit (int);

int
main (void)
{
  struct \u00C0 { int \u00C1; } x;
  struct \u00C0 *y = &x;
  y->\u00C1 = 1;
  if (x.\U000000C1 != 1)
    abort ();
  goto \u00ff;
 \u00ff: ;
  enum e { \u00C2 = 4 };
  if (\u00C2 != 4)
    abort ();
  exit (0);
}