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
/
bug1749275.c
blob
05764d54772030395434511cf46749cceabefd6e
1
/*
2
bug 1749275
3
*/
4
5
#include <testfwk.h>
6
7
__xdata
char
baz
;
8
9
// no need to call this, it generates compiler error:
10
// Internal error: validateOpType failed in
11
// OP_SYM_TYPE(IC_LEFT(pl->ic)) @ peep.c:226:
12
// expected symbol, got value
13
void
14
foo
(
void
)
15
{
16
baz
|=
5
;
17
(*(
void
(*) ())
0
) ();
18
}
19
20
void
21
testBug
(
void
)
22
{
23
ASSERT
(
1
);
24
}