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
/
bug3135551.c
blob
78201687db2933bfc2c29651ae71f0c3beae9080
1
/*
2
bug3135551.c
3
*/
4
5
#include <testfwk.h>
6
7
char
test1
[] = {
3
};
8
char
test2
[
1
] = {
1
+
2
};
9
char
test3
[] = {
1
+
2
,
1
+
2
};
10
char
test4
[] = {
1
+
2
};
//this line failed with error 2: Initializer element is not constant
11
char
test5
[] =
"a"
;
12
13
void
testBug
(
void
)
14
{
15
ASSERT
(
1
);
16
}