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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste11.c] - Rev 328

Go to most recent revision | Compare with Previous | Blame | View Log

/* 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" } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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