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-2.C
blob
2ffb3c97b18f0891b5147d232bfac272a52f506b
1
/* Test stringization of identifiers with UCNs preserves spelling. */
2
/* { dg-do run } */
3
4
#include <stdlib.h>
5
#include <string.h>
6
7
#define h(s) #s
8
#define str(s) h(s)
9
10
int
11
main ()
12
{
13
if (strcmp (str (str (\u00c1)), "\"\\u00c1\""))
14
abort ();
15
if (strcmp (str (str (\u00C1)), "\"\\u00C1\""))
16
abort ();
17
}