Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / ucnid-6.c
blob5713a84f265f4282fe354fc01dcc5da0fc1a058f
1 /* { dg-do run } */
2 /* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "*" } { "" } } */
3 /* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
4 /* { dg-options "-std=c99 -fextended-identifiers -save-temps" } */
5 void abort (void);
7 int \u00C0(void) { return 1; }
8 int \u00C1(void) { return 2; }
9 int \U000000C2(void) { return 3; }
10 int wh\u00ff(void) { return 4; }
11 int a\u00c4b\u0441\U000003b4e(void) { return 5; }
13 int main (void)
16 if (\u00C0() != 1)
17 abort ();
18 if (\u00c1() != 2)
19 abort ();
20 if (\u00C2() != 3)
21 abort ();
22 if (wh\u00ff() != 4)
23 abort ();
24 if (a\u00c4b\u0441\U000003b4e() != 5)
25 abort ();
27 return 0;
29 /* { dg-final { cleanup-saved-temps } } */