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
/
bug2938110.c
blob
a500d3f6d0695dd9485dd7baafe93d538d2c6dde
1
/*
2
bug2938110.c
3
*/
4
5
#include <testfwk.h>
6
7
// no need to call this, it generates compiler error:
8
// Internal error: validateOpType failed in
9
// OP_SYMBOL(IC_LEFT(ic)) @ src/ds390/ralloc.c:2660:
10
// expected symbol, got value
11
int
12
foo
(
int
b
)
13
{
14
int
a
=
10
;
15
a
+=
b
;
16
return
a
;
17
}
18
19
void
20
testBug
(
void
)
21
{
22
ASSERT
(
1
);
23
}