summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20021120-2.c
blob: d8876c0ebfa8fd9d5f7ba8bd810fe892775ae457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int g1, g2;

void foo (int x)
{
  int y;

  if (x)
    y = 793;
  else
    y = 793;
  g1 = 7930 / y;
  g2 = 7930 / x;
}

int main ()
{
  foo (793);
  if (g1 != 10 || g2 != 10)
    abort ();
  exit (0);
}