aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/concat2.c
blob: 1e92400663f00df5d7e55ab945418861ce79cb43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/3581 */
/* { dg-do compile } */
/* { dg-options "" } */

/* 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); }