aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/autopar/pr57185.c
blob: b4657576dc9f46cea170965924b134ed2484642f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}