struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000706-2.c
blob30c220705952f694f40a97a40f35ab35379bc6f9
1 /*
2 20000706-2.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 #if 0
12 struct baz {
13 int a, b, c, d, e;
16 void bar(struct baz *x, int f, int g, int h, int i, int j)
18 if (x->a != 1 || x->b != 2 || x->c != 3 || x->d != 4 || x->e != 5 ||
19 f != 6 || g != 7 || h != 8 || i != 9 || j != 10)
20 ASSERT(0);
23 void foo(char *z, struct baz x, char *y)
25 bar(&x,6,7,8,9,10);
27 #endif
29 void
30 testTortureExecute (void)
32 #if 0
33 struct baz x;
35 x.a = 1;
36 x.b = 2;
37 x.c = 3;
38 x.d = 4;
39 x.e = 5;
40 foo((char *)0,x,(char *)0);
41 return;
42 #endif