PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr70725.c
blobfc7b674d7561ee0bcb6702034d5c868be6a7adf6
1 /* PR tree-optimization/70725 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4 /* { dg-additional-options "-march=skylake-avx512" { target { i?86-*-* x86_64-*-* } } } */
6 extern short a;
7 extern int b, d;
8 extern int c[100];
9 extern int e;
10 extern int f;
12 void
13 fn1 ()
15 for (; e < 2; e = e + 1)
16 d = a;
17 for (;;)
18 for (int g = 0; g < 5; g = g + 1)
19 for (int h = 0; h < 2; h = h + 1)
20 for (int i = 0; i < 3; i = i + 1)
21 c[f + i] = a && b;