struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr87053.c
blobed07c080daf4d32e54e7116636c2041afe8e85ec
1 /*
2 pr87053.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #include <string.h>
9 /* PR middle-end/87053 */
11 #if 0
12 const union
13 { struct {
14 char x[4];
15 char y[4];
17 struct {
18 char z[8];
20 } u = {{"1234", "567"}};
21 #endif
23 void
24 testTortureExecute (void)
26 #if 0 // Bug
27 if (strlen (u.z) != 7)
28 ASSERT (0);
29 #endif