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-pr82388.c
blob0021e93b91773d9af227944ca33696be43ce0946
1 /*
2 pr82388.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR tree-optimization/82388 */
9 #if 0 // TODO: Enable when SDCC can initialize with extra braces
10 struct A { int b; int c; int d; } e;
12 struct A
13 foo (void)
15 struct A h[30] = {{0,0,0}};
16 return h[29];
18 #endif
19 void
20 testTortureExecute (void)
22 #if 0
23 e = foo ();
24 return e.b;
25 #endif