Mercurial > hg > CbC > CbC_gcc
view 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 (2020-05-25) |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* Test correct pasting of identifiers and numbers. We can paste any number, as long as no '.', '-' or '+' appears in its spelling. */ #define glue(x, y) x ## y glue (ident, 12) /* OK. */ glue (ident, 12e3) /* OK. */ glue (ident, 12e+3) /* { dg-error "valid preprocessing tok" } */ glue (ident, 12e-3) /* { dg-error "valid preprocessing tok" } */ glue (ident, 1.2) /* { dg-error "valid preprocessing tok" } */ glue (ident, .12) /* { dg-error "valid preprocessing tok" } */