summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20021010-1.c
blob: d742ce40b5fb142466808e71692d4e73db9a4c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <limits.h>

int
sub ()
{
  int dummy = 0, a = 16;

  if (a / INT_MAX / 16 == 0)
    return 0;
  else
    return a / INT_MAX / 16;
}

int
main ()
{
  if (sub () != 0)
    abort ();

  exit (0);
}