diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/ucnid-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/ucnid-1.C | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/ucnid-1.C b/gcc/testsuite/g++.dg/other/ucnid-1.C new file mode 100644 index 00000000000..c55afd6b1d7 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/ucnid-1.C @@ -0,0 +1,27 @@ +/* APPLE LOCAL begin mainline UCNs 2005-04-17 3892809 */ +/* { dg-do run } */ +#include <cstdlib> + +int \u00C0(void) { return 1; } +int \u00C1(void) { return 2; } +int \U000000C2(void) { return 3; } +int wh\u00ff(void) { return 4; } +int a\u00c4b\u0441\U000003b4e(void) { return 5; } + +int main (void) +{ + + if (\u00C0() != 1) + abort (); + if (\u00c1() != 2) + abort (); + if (\u00C2() != 3) + abort (); + if (wh\u00ff() != 4) + abort (); + if (a\u00c4b\u0441\U000003b4e() != 5) + abort (); + + return 0; +} +/* APPLE LOCAL end mainline UCNs 2005-04-17 3892809 */ |