1 /*
2    20030914-2.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 // TODO: Enable when sdcc supports struct assignment!
12 #if 0
13 /* On IRIX 6, PA is passed partially in registers and partially on the
14    stack.  We therefore have two potential uses of pretend_args_size:
15    one for the partial argument and one for the varargs save area.
16    Make sure that these uses don't conflict.  */
17 
18 struct s { int i[18]; };
19 
20 int f (struct s pa, int pb, ...)
21 {
22   return pb;
23 }
24 
25 struct s gs;
26 #endif
27 
28 void
testTortureExecute(void)29 testTortureExecute (void)
30 {
31 #if 0
32   if (f (gs, 0x1234) != 0x1234)
33     ASSERT (0);
34 
35   return;
36 #endif
37 }
38 
39