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-485362.c.in
blob
66ca3602fdef5b70b08766f7a9d778a0eaf6db18
1
/** Shows segfault.
2
type: int
3
*/
4
#include <testfwk.h>
5
6
void
7
spoil
({
type
}
f
)
8
{
9
UNUSED
(
f
);
10
}
11
12
void
13
testDivBySelf
(
void
)
14
{
15
volatile
{
type
}
left
,
result
;
16
17
left
=
17
;
18
result
=
left
/
left
;
19
20
spoil
(
result
);
21
}