summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20010422-1.c
blob: e15f6b1f479642b32d1d32e4fd33d1ec9f46eefa (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
/*
   20010422-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

unsigned int foo(unsigned int x)
{
  if (x < 5)
    x = 4;
  else
    x = 8;
  return x;
}

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