2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp / ucnid-2.C
blob2ffb3c97b18f0891b5147d232bfac272a52f506b
1 /* Test stringization of identifiers with UCNs preserves spelling.  */
2 /* { dg-do run } */
4 #include <stdlib.h>
5 #include <string.h>
7 #define h(s) #s
8 #define str(s) h(s)
10 int
11 main ()
13   if (strcmp (str (str (\u00c1)), "\"\\u00c1\""))
14     abort ();
15   if (strcmp (str (str (\u00C1)), "\"\\u00C1\""))
16     abort ();