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/] [paste4.c] - Rev 307

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

/* Copyright (C) 2000 Free Software Foundation, Inc.  */
/* { dg-do compile } */
/* { dg-options -save-temps } */
 
/* Since 1.0e and + form the pasted token, 1 is a separate token and
   so should be output with a preceding space.  The old preprocessor
   gets this wrong.  We use -save-temps to avoid direct use of the
   integrated preprocessor.  */
 
#define glue(x, y) x ## y
 
int main ()
{
  double d = glue (1.0e, +1); /* { dg-error "exponent|parse error|syntax error|expected" } */
  return 0;
}
 
/* { dg-final { cleanup-saved-temps } } */
 

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.