Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/udlit-extended-id-4.C

raw
1 // { dg-options "-std=c++98 -Wc++11-compat" }
2 #define END ;
3 #define εND ;
4 #define EηD ;
5 #define EN\u0394 ;
6
7 const char *s1 = "s1"END // { dg-warning "requires a space between string literal and macro" }
8 const char *s2 = "s2"εND // { dg-warning "requires a space between string literal and macro" }
9 const char *s3 = "s3"EηD // { dg-warning "requires a space between string literal and macro" }
10 const char *s4 = "s4"ENΔ // { dg-warning "requires a space between string literal and macro" }
11
12 /* Make sure we did not skip the token also in the case that it wasn't found to
13 be a macro; compilation should fail here. */
14 const char *s5 = "s5"NØT_A_MACRO; // { dg-error "expected ',' or ';' before" }