Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / tree-loop-1.c
blob1d38691780a56f6d0a77b8d48bbfd6c206e06869
1 /* PR tree-optimization/20640 */
3 /* After unrolling the loop, we'd turn some conditional branches into
4 unconditional ones, but branch redirection would fail to compute
5 the PHI args for the PHI nodes in the replacement edge
6 destination, so they'd remain NULL causing crashes later on. */
8 /* { dg-do compile } */
10 static int a = 0;
11 extern int foo (void);
12 extern int *bar (void) __attribute__ ((__const__));
14 void
15 test (int x)
17 int b = 10;
18 while (foo () == -1 && *bar () == 4 && b > 0)
19 --b;
20 a = x;