summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ucnid-14-utf8.c
blob: e781ed6b4ed0c24100a20621321830b05cf6768b (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 UTF-8 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 À { int Á; } x;
  struct À *y = &x;
  y->Á = 1;
  if (x.Á != 1)
    abort ();
  goto ÿ;
 ÿ: ;
  enum e { Â = 4 };
  if (Â != 4)
    abort ();
  exit (0);
}