1 /* Copyright (C) 2000 Free Software Foundation, Inc. */ 2 3 /* { dg-do preprocess } */ 4 5 /* Test correct pasting of identifiers and numbers. We can paste any 6 number, as long as no '.', '-' or '+' appears in its spelling. */ 7 8 #define glue(x, y) x ## y 9 10 glue (ident, 12) /* OK. */ 11 glue (ident, 12e3) /* OK. */ 12 glue (ident, 12e+3) /* { dg-error "valid preprocessing tok" } */ 13 glue (ident, 12e-3) /* { dg-error "valid preprocessing tok" } */ 14 glue (ident, 1.2) /* { dg-error "valid preprocessing tok" } */ 15 glue (ident, .12) /* { dg-error "valid preprocessing tok" } */ 16