PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / concat2.c
blob1e92400663f00df5d7e55ab945418861ce79cb43
1 /* PR c/3581 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 /* Intended as a compile-time test for string literal concatenation.
6 The fact that the string isn't actually used in the resulting program
7 should allow this to compile for any target. */
9 #define e0 "a"
10 #define e1 e0 e0 e0 e0 e0 e0 e0 e0 e0 e0
11 #define e2 e1 e1 e1 e1 e1 e1 e1 e1 e1 e1
12 #define e3 e2 e2 e2 e2 e2 e2 e2 e2 e2 e2
13 #define e4 e3 e3 e3 e3 e3 e3 e3 e3 e3 e3
14 #define e5 e4 e4 e4 e4 e4 e4 e4 e4 e4 e4
16 void foo() { (void)(e5); }