repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
qct
/
0044-struct.c
blob
895e55bd078513012cca066e48513ca3c69dfd14
1
struct
s
{
2
int
x
;
3
struct
{
4
int
y
;
5
int
z
;
6
}
nest
;
7
};
8
9
int
10
main
() {
11
struct
s v
;
12
v
.
x
=
1
;
13
v
.
nest
.
y
=
2
;
14
v
.
nest
.
z
=
3
;
15
if
(
v
.
x
+
v
.
nest
.
y
+
v
.
nest
.
z
!=
6
)
16
return
1
;
17
return
0
;
18
}
19