1 /*
2    931004-11.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 #endif
10 
11 // TODO: Enable when sdcc supports struct!
12 #if 0
13 struct tiny
14 {
15   char c;
16   char d;
17   char e;
18 };
19 
20 void f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
21 {
22   if (x.c != 10)
23     ASSERT (0);
24   if (x.d != 20)
25     ASSERT (0);
26   if (x.e != 30)
27     ASSERT (0);
28 
29   if (y.c != 11)
30     ASSERT (0);
31   if (y.d != 21)
32     ASSERT (0);
33   if (y.e != 31)
34     ASSERT (0);
35 
36   if (z.c != 12)
37     ASSERT (0);
38   if (z.d != 22)
39     ASSERT (0);
40   if (z.e != 32)
41     ASSERT (0);
42 
43   if (l != 123)
44     ASSERT (0);
45 }
46 #endif
47 
48 void
testTortureExecute(void)49 testTortureExecute (void)
50 {
51 #if 0
52   struct tiny x[3];
53   x[0].c = 10;
54   x[1].c = 11;
55   x[2].c = 12;
56   x[0].d = 20;
57   x[1].d = 21;
58   x[2].d = 22;
59   x[0].e = 30;
60   x[1].e = 31;
61   x[2].e = 32;
62   f (3, x[0], x[1], x[2], (long) 123);
63   return;
64 #endif
65 }
66 
67