diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr57185.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr57185.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr57185.c b/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr57185.c new file mode 100644 index 000000000..b4657576d --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr57185.c @@ -0,0 +1,29 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -ftree-parallelize-loops=2 -fipa-pta" } */ + +int a, b; +int *d; +void f(void) +{ + int c; + b %= 1; + + if(1 - (b < 1)) + { + int *q = 0; + + if(a) + { + c = 0; +lbl: + for(*d; *d; ++*d) + if(c ? : a ? : (c = 1) ? : 0) + *q &= 1; + return; + } + + q = (int *)1; + } + goto lbl; +} + |