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-990525-1.c
blob4332ec79b0d09c0a63c4cc0c05a7a30e2ff9503c
1 /*
2 990525-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 // TODO: Enable when sdcc supports struct!
12 #if 0
13 struct blah {
14 int m1, m2;
17 void die(struct blah arg)
19 int i ;
20 struct blah buf[1];
22 for (i = 0; i < 1 ; buf[i++] = arg)
24 if (buf[0].m1 != 1) {
25 ASSERT (0);
28 #endif
30 void
31 testTortureExecute (void)
33 #if 0
34 struct blah s = { 1, 2 };
36 die(s);
37 return;
38 #endif