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

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

unsigned long
sub (int a)
{
  return ((0 > a - 2) ? 0 : a - 2) * sizeof (long);
}

void
testTortureExecute (void)
{
  if (sub (0) != 0)
    ASSERT (0);

  return;
}