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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste4.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
/* { dg-do compile } */
3
/* { dg-options -save-temps } */
4
 
5
/* Since 1.0e and + form the pasted token, 1 is a separate token and
6
   so should be output with a preceding space.  The old preprocessor
7
   gets this wrong.  We use -save-temps to avoid direct use of the
8
   integrated preprocessor.  */
9
 
10
#define glue(x, y) x ## y
11
 
12
int main ()
13
{
14
  double d = glue (1.0e, +1); /* { dg-error "exponent|parse error|syntax error|expected" } */
15
  return 0;
16
}
17
 
18
/* { dg-final { cleanup-saved-temps } } */

powered by: WebSVN 2.1.0

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