annotate gcc/testsuite/gcc.dg/cpp/ucnid-11.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test spelling differences in UCNs are properly diagnosed for macro
kono
parents:
diff changeset
2 redefinitions. */
kono
parents:
diff changeset
3 /* { dg-do preprocess } */
kono
parents:
diff changeset
4 /* { dg-options "-std=c99 -pedantic-errors" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Different spelling of UCN in expansion. */
kono
parents:
diff changeset
7 #define m1 \u00c1 /* { dg-message "previous definition" } */
kono
parents:
diff changeset
8 #define m1 \u00C1 /* { dg-error "redefined" } */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #define m1ok \u00c1
kono
parents:
diff changeset
11 #define m1ok \u00c1
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 /* Different spelling of UCN in argument name. */
kono
parents:
diff changeset
14 #define m2(\u00c1) /* { dg-message "previous definition" } */
kono
parents:
diff changeset
15 #define m2(\u00C1) /* { dg-error "redefined" } */
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 #define m2ok(\u00c1)
kono
parents:
diff changeset
18 #define m2ok(\u00c1)
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* Same spelling in argument name but different spelling when used in
kono
parents:
diff changeset
21 expansion. */
kono
parents:
diff changeset
22 #define m3(\u00c1) \u00c1 /* { dg-message "previous definition" } */
kono
parents:
diff changeset
23 #define m3(\u00c1) \u00C1 /* { dg-error "redefined" } */
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 #define m3ok(\u00c1) \u00C1
kono
parents:
diff changeset
26 #define m3ok(\u00c1) \u00C1
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 /* Different spelling of the macro name itself is OK. */
kono
parents:
diff changeset
29 #define m4ok\u00c1
kono
parents:
diff changeset
30 #define m4ok\u00C1