summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20030120-2.c
blob: 298bc4f5b4f57eab26410fe759290110623de5d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR 8848 */

extern void abort ();

int foo(int status)
{
  int s = 0;
  if (status == 1) s=1;
  if (status == 3) s=3;
  if (status == 4) s=4;
  return s;
}

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