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-20000706-1.c
blob3ed9840edf603fbf297561db65418772f2172f3f
1 /*
2 20000706-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 struct baz {
12 int a, b, c, d, e;
15 void bar(struct baz *x, int f, int g, int h, int i, int j)
17 if (x->a != 1 || x->b != 2 || x->c != 3 || x->d != 4 || x->e != 5 ||
18 f != 6 || g != 7 || h != 8 || i != 9 || j != 10)
19 ASSERT (0);
22 void foo(struct baz x, char **y)
24 bar(&x,6,7,8,9,10);
27 void
28 testTortureExecute (void)
30 struct baz x;
32 x.a = 1;
33 x.b = 2;
34 x.c = 3;
35 x.d = 4;
36 x.e = 5;
37 foo(x,(char **)0);
38 return;