Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/tree-loop-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR tree-optimization/20640 */ /* After unrolling the loop, we'd turn some conditional branches into unconditional ones, but branch redirection would fail to compute the PHI args for the PHI nodes in the replacement edge destination, so they'd remain NULL causing crashes later on. */ /* { dg-do compile } */ static int a = 0; extern int foo (void); extern int *bar (void) __attribute__ ((__const__)); void test (int x) { int b = 10; while (foo () == -1 && *bar () == 4 && b > 0) --b; a = x; }