Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / paste4.c
blob8ada5674b17f1d96b17a3d0c24e334c07c387c9f
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
2 /* { dg-do compile } */
3 /* { dg-options -save-temps } */
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. */
10 #define glue(x, y) x ## y
12 int main ()
14 double d = glue (1.0e, +1); /* { dg-error "exponent|parse error|syntax error|expected" } */
15 return 0;