summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/950915-1.c
blob: cfa044757b88abe365d0bc1acbc87b6ffd568e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
long int a = 100000;
long int b = 21475;

long
f ()
{
  return ((long long) a * (long long) b) >> 16;
}

main ()
{
  if (f () < 0)
    abort ();
  exit (0);
}