blob: 9fd356ef78da20a9753da268fc1d40e020b462fd (
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
30
31
32
33
34
35
36
37
|
/*
20000731-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#pragma disable_warning 93
#endif
double
foo (void)
{
return 0.0;
}
void
do_sibcall (void)
{
(void) foo ();
}
void
testTortureExecute (void)
{
#ifndef __SDCC_pdk14 // Lack of memory
double x;
for (x = 0; x < 20; x++)
do_sibcall ();
if (!(x >= 10))
ASSERT (0);
return;
#endif
}
|