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
/
bug1579949.c
blob
f656605a68c330b97cac558fcedff1321fc2d968
1
/*
2
bug 1579949
3
*/
4
5
#include <testfwk.h>
6
7
struct
st_s
8
{
9
char
el
;
10
};
11
12
// no need to call this, it generates compiler error for z80, hc08, stack-auto
13
// error 9: FATAL Compiler Internal Error
14
char
foo
(
int
x
,
struct
st_s
*
arg
)
15
{
16
x
;
17
return
((
struct
st_s
*)
arg
) ->
el
;
18
}
19
20
void
21
testBug
(
void
)
22
{
23
ASSERT
(
1
);
24
}