gcc/testsuite/gcc.dg/autopar/pr57185.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -ftree-parallelize-loops=2 -fipa-pta" } */ |
| 3 | |
| 4 | int a, b; |
| 5 | int *d; |
| 6 | void f(void) |
| 7 | { |
| 8 | int c; |
| 9 | b %= 1; |
| 10 | |
| 11 | if(1 - (b < 1)) |
| 12 | { |
| 13 | int *q = 0; |
| 14 | |
| 15 | if(a) |
| 16 | { |
| 17 | c = 0; |
| 18 | lbl: |
| 19 | for(*d; *d; ++*d) |
| 20 | if(c ? : a ? : (c = 1) ? : 0) |
| 21 | *q &= 1; |
| 22 | return; |
| 23 | } |
| 24 | |
| 25 | q = (int *)1; |
| 26 | } |
| 27 | goto lbl; |
| 28 | } |
| 29 |