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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste11.c] - Blame information for rev 689

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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