summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr66187.c
blob: 96dc0f0b2ef3661770e1df5b4dcdd5d9957f91d5 (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
/*
   pr66187.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

/* PR tree-optimization/66187 */

int a = 1, e = -1;
short b, f;

void
testTortureExecute (void)
{
  f = e;
#if 0 // Enable when SDCC supports intermingling
  int g = b < 0 ? 0 : f + b;
  if ((g & -4) < 0)
    a = 0;
  if (a)
    ASSERT (0);
#endif
  return;
}