2typedef struct
3{
4 char d;
5} st3;
6
7typedef struct
8{
9 char c;
10 char d;
11 short e;
12 short f;
13} st2;
14
15typedef struct
16{
17 short a;
18 short b;
19 union {
20 st2 s2;
21 st3 s3;
22 } u;
23} st;
24
25st _s;
initial _s.u.st2.c by litteral zero.
However, member d and e are cleared.
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.4 #5573 (Dec 1 2009) (CYGWIN)
test code