Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/paste11.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
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" } */