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

#include <testfwk.h>

#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
int
foo (float a)
{
  return a * 4.9f;
}
#endif

void
testTortureExecute (void)
{
#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
  if (foo (10.0f) != 49)
    ASSERT (0);
#endif
}