gcc/testsuite/gcc.dg/ucnid-14.c
raw| 1 | /* Test miscellaneous uses of UCNs 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 \u00C0 { int \u00C1; } x; |
| 13 | struct \u00C0 *y = &x; |
| 14 | y->\u00C1 = 1; |
| 15 | if (x.\U000000C1 != 1) |
| 16 | abort (); |
| 17 | goto \u00ff; |
| 18 | \u00ff: ; |
| 19 | enum e { \u00C2 = 4 }; |
| 20 | if (\u00C2 != 4) |
| 21 | abort (); |
| 22 | exit (0); |
| 23 | } |