OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste11.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* 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-warning "valid preprocessing tok" } */
13
glue (ident, 12e-3)             /* { dg-warning "valid preprocessing tok" } */
14
glue (ident, 1.2)               /* { dg-warning "valid preprocessing tok" } */
15
glue (ident, .12)               /* { dg-warning "valid preprocessing tok" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.