repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Preserve original spellings of extended identifiers.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp
/
ucnid-3.C
blob
0db9aaaf71b14774911e396b3282b3b5940a8ae7
1
/* Test pasting of identifiers with UCNs preserves spelling. */
2
/* { dg-do run } */
3
4
#include <stdlib.h>
5
#include <string.h>
6
7
#define c(s1, s2) s1 ## s2
8
#define h(s) #s
9
#define str(s) h(s)
10
11
int
12
main ()
13
{
14
if (strcmp (str (str (c (\u00c1, \u00C1))), "\"\\u00c1\\u00C1\""))
15
abort ();
16
}