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
/
tests
/
bug-2385.c
blob
542d5f63a7d8d89f57d9396421692d6d050581df
1
/*
2
bug-2385.c
3
*/
4
5
#include <testfwk.h>
6
7
typedef
struct
fileblk
*
FILE
;
8
FILE
standin
;
9
10
struct
fileblk
{
11
int
a
;
12
};
13
14
int
silly
(
void
)
15
{
16
FILE
f
;
17
return
(
f
=
standin
)->
a
;
18
}
19
20
void
testBug
(
void
)
21
{
22
struct
fileblk f
;
23
f
.
a
=
42
;
24
standin
= &
f
;
25
ASSERT
(
silly
() ==
42
);
26
}