1 /*
2    921124-1.c from the execute part of the gcc torture suite.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 93
10 #pragma disable_warning 85
11 #endif
12 
13 #if !defined(__SDCC_pic14) // Pseudo-stack size limit
f(int x,double d1,double d2,double d3)14 int f(int x, double d1, double d2, double d3)
15 {
16    return x;
17 }
18 
g(char * b,char * s,double x,double y,int i,int j)19 void g(char *b, char *s, double x, double y, int i, int j)
20 {
21 #if !defined(__SDCC_pdk14) // Lack of memory
22   if (x != 1.0 || y != 2.0 || i != 3 || j != 4)
23     ASSERT(0);
24 #endif
25 }
26 #endif
27 
28 void
testTortureExecute(void)29 testTortureExecute (void)
30 {
31 #if !defined(__SDCC_pic14) // Pseudo-stack size limit
32   g("","", 1.0, 2.0, f(3, 0.0, 0.0, 0.0), f(4, 0.0, 0.0, 0.0));
33   return;
34 #endif
35 }
36 
37