summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr65216.c
blob: c197ba16dacdf1156355950cfb3bd554c871e5ee (plain) (blame)
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
/*
   pr65216.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

/* PR tree-optimization/65216 */

int a, b = 62, e;
volatile int c, d;

void
testTortureExecute (void)
{
  int f = 0;
  for (a = 0; a < 2; a++)
    {
      b &= (8 ^ f) & 1;
      for (e = 0; e < 6; e++)
	if (c)
	  f = d;
    }
  if (b != 0)
    ASSERT (0);
  return;
}