annotate gcc/testsuite/gcc.dg/cpp/paste11.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do preprocess } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /* Test correct pasting of identifiers and numbers. We can paste any
kono
parents:
diff changeset
6 number, as long as no '.', '-' or '+' appears in its spelling. */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 #define glue(x, y) x ## y
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 glue (ident, 12) /* OK. */
kono
parents:
diff changeset
11 glue (ident, 12e3) /* OK. */
kono
parents:
diff changeset
12 glue (ident, 12e+3) /* { dg-error "valid preprocessing tok" } */
kono
parents:
diff changeset
13 glue (ident, 12e-3) /* { dg-error "valid preprocessing tok" } */
kono
parents:
diff changeset
14 glue (ident, 1.2) /* { dg-error "valid preprocessing tok" } */
kono
parents:
diff changeset
15 glue (ident, .12) /* { dg-error "valid preprocessing tok" } */