gcc/testsuite/gcc.dg/ucnid-14-utf8.c
raw| 1 | /* Test miscellaneous uses of UTF-8 in identifiers compile and run OK, |
| 2 | with debug info enabled. */ |
| 3 | /* { dg-do run } */ |
| 4 | /* { dg-options "-std=c99 -g" } */ |
| 5 | |
| 6 | extern void abort (void); |
| 7 | extern void exit (int); |
| 8 | |
| 9 | int |
| 10 | main (void) |
| 11 | { |
| 12 | struct À { int Á; } x; |
| 13 | struct À *y = &x; |
| 14 | y->Á = 1; |
| 15 | if (x.Á != 1) |
| 16 | abort (); |
| 17 | goto ÿ; |
| 18 | ÿ: ; |
| 19 | enum e { Â = 4 }; |
| 20 | if (Â != 4) |
| 21 | abort (); |
| 22 | exit (0); |
| 23 | } |