diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/ucnid-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/ucnid-2.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/ucnid-2.c b/gcc/testsuite/gcc.dg/cpp/ucnid-2.c new file mode 100644 index 00000000000..02ffdaf32ee --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/ucnid-2.c @@ -0,0 +1,18 @@ +/* APPLE LOCAL begin mainline UCNs 2005-04-17 3892809 */ +/* { dg-do run } */ +/* { dg-options "-std=c99" } */ +#include <stdlib.h> +#include <string.h> + +#define str(t) #t + +int main (void) +{ + const char s[] = str (\u30b2); + + if (strcmp (s, "\u30b2") != 0) + abort (); + + return 0; +} +/* APPLE LOCAL end mainline UCNs 2005-04-17 3892809 */ |