aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr59519-2.c
blob: 2b109d2557d810601115aad6e447491871f47f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/59519 */
/* { dg-do compile } */
/* { dg-additional-options "-O3" } */

struct S { int f0; } d;
int a[8] = { 0 }, b, c, e;

void
foo (void)
{
  for (; e < 1; e++)
    for (b = 0; b < 7; b++)
      {
	c |= (a[b + 1] != 0);
	if (d.f0)
	  break;
      }
}

/* { dg-final { cleanup-tree-dump "vect" } } */