summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr21331.c
blob: 4d95878e631aa9a52616ab162c74f8260281daa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void abort (void);

int bar (void) {  return -1;  }

unsigned long
foo ()
{ unsigned long retval;
  retval = bar ();
  if (retval == -1)  return 0;
  return 3;  }

main ()
{ if (foo () != 0)  abort ();
  return 0;  }