summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20030120-2.c
blob: 7e6198765f8e9999fdb673c539692db5317cd282 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
   20030120-2.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* PR 8848 */

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

void
testTortureExecute (void)
{
  if (foo (3) != 3)
    ASSERT (0);
  return;
}