Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20010518-1.c
blob1e320c96c29c9bfa57797dc893f7edaadc1e3fd7
1 /*
2 20010518-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* Leaf functions with many arguments. */
13 #if !defined(__SDCC_pic14) // Pseudo-stack size limit
14 int
15 add (int a,
16 int b,
17 int c,
18 int d,
19 int e,
20 int f,
21 int g,
22 int h,
23 int i,
24 int j,
25 int k,
26 int l,
27 int m)
29 return a+b+c+d+e+f+g+h+i+j+k+l+m;
31 #endif
33 void
34 testTortureExecute (void)
36 #if !defined(__SDCC_pic14) // Pseudo-stack size limit
37 if (add (1,2,3,4,5,6,7,8,9,10,11,12,13) != 91)
38 ASSERT (0);
39 #endif
41 return;