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

#include <testfwk.h>

int yf = 0;

void
pl (int q5, int nd)
{
  unsigned int hp = q5;
  int zx = (q5 == 0) ? hp : (hp / q5);

  yf = ((nd < 2) * zx != 0) ? nd : 0;
}

void
testTortureExecute (void)
{
  pl (1, !yf);
  if (yf != 1)
    ASSERT (0);

  return;
}