1 /* Test spelling differences in UCNs are properly diagnosed for macro
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=c99 -pedantic-errors" } */
6 /* Different spelling of UCN in expansion. */
7 #define m1 \u00c1 /* { dg-message "previous definition" } */
8 #define m1 \u00C1 /* { dg-error "redefined" } */
13 /* Different spelling of UCN in argument name. */
14 #define m2(\u00c1) /* { dg-message "previous definition" } */
15 #define m2(\u00C1) /* { dg-error "redefined" } */
20 /* Same spelling in argument name but different spelling when used in
22 #define m3(\u00c1) \u00c1 /* { dg-message "previous definition" } */
23 #define m3(\u00c1) \u00C1 /* { dg-error "redefined" } */
25 #define m3ok(\u00c1) \u00C1
26 #define m3ok(\u00c1) \u00C1
28 /* Different spelling of the macro name itself is OK. */