aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/concat1.C
blob: 7bf97a628743529e73509de3a4e7a4f79e6784ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c/3581 */
/* { dg-do compile } */

/* Intended as a compile-time test for string literal concatenation.
   The fact that the string isn't actually used in the resulting program
   should allow this to compile for any target.  */

#define e0	"a"
#define e1	e0 e0 e0 e0 e0 e0 e0 e0 e0 e0
#define e2	e1 e1 e1 e1 e1 e1 e1 e1 e1 e1
#define e3	e2 e2 e2 e2 e2 e2 e2 e2 e2 e2
#define e4	e3 e3 e3 e3 e3 e3 e3 e3 e3 e3
#define e5	e4 e4 e4 e4 e4 e4 e4 e4 e4 e4

void foo() { (void)(e5); }