Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/paste11.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +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" } */