summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/961026-1.c
blob: 942a6eb131aa8ba53140fe1cf0532d8d4b0e0cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int
test (arg)
     int arg;
{
  if (arg > 0 || arg == 0)
    return 0;
  return -1;
}

main ()
{
  if (test (0) != 0)
    abort ();
  if (test (-1) != -1)
    abort ();
  exit (0);
}