1 /*
2 20000707-1.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 passing
12 #if 0
13 struct baz {
14 int a, b, c;
15 };
16
17 void
18 foo (int a, int b, int c)
19 {
20 if (a != 4)
21 ASSERT (0);
22 }
23
24 void
25 bar (struct baz x, int b, int c)
26 {
27 foo (x.b, b, c);
28 }
29 #endif
30
31 void
testTortureExecute(void)32 testTortureExecute (void)
33 {
34 #if 0
35 struct baz x = { 3, 4, 5 };
36 bar (x, 1, 2);
37 return;
38 #endif
39 }
40
41