2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / concat1.C
blob7bf97a628743529e73509de3a4e7a4f79e6784ef
1 /* PR c/3581 */
2 /* { dg-do compile } */
4 /* Intended as a compile-time test for string literal concatenation.
5    The fact that the string isn't actually used in the resulting program
6    should allow this to compile for any target.  */
8 #define e0      "a"
9 #define e1      e0 e0 e0 e0 e0 e0 e0 e0 e0 e0
10 #define e2      e1 e1 e1 e1 e1 e1 e1 e1 e1 e1
11 #define e3      e2 e2 e2 e2 e2 e2 e2 e2 e2 e2
12 #define e4      e3 e3 e3 e3 e3 e3 e3 e3 e3 e3
13 #define e5      e4 e4 e4 e4 e4 e4 e4 e4 e4 e4
15 void foo() { (void)(e5); }