Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp/ucnid-3-utf8.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Test pasting of identifiers with extended characters works. */ | |
2 | |
3 /* Note: The results expected in these tests are what GCC currently | |
4 outputs, but they are not technically standard-conforming. If GCC is | |
5 changed in the future to produce the standard-conforming output, then | |
6 this test will fail and should be adjusted to check for UCNs in the | |
7 output rather than UTF-8. See PR 91755 for more details. */ | |
8 | |
9 /* { dg-do run } */ | |
10 | |
11 #include <stdlib.h> | |
12 #include <string.h> | |
13 | |
14 #define c(s1, s2) s1 ## s2 | |
15 #define h(s) #s | |
16 #define str(s) h(s) | |
17 | |
18 int | |
19 main () | |
20 { | |
21 if (strcmp (str (str (c (Á, Á))), "\"ÁÁ\"")) | |
22 abort (); | |
23 } |