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
/
bug2862650.c
blob
a44cfbac84cb3eb1df12244a5c138ef1c8b9eb44
1
/*
2
* bug2862650.c
3
*/
4
5
#include <testfwk.h>
6
7
void
8
testBug
(
void
)
9
{
10
#ifndef __SDCC_pdk14
// Lack of memory
11
static const float
a
[] = {
1.5
,
2.5
,
3.5
};
12
const float
b
[] = {
4.5
,
5.5
,
6.5
};
13
static float
c
[] = {
7.5
,
8.5
,
9.5
};
14
volatile
char
i
;
15
16
i
=
1
;
17
18
ASSERT
(
a
[
i
] ==
2.5
);
19
ASSERT
(
b
[
i
] ==
5.5
);
20
ASSERT
(
c
[
i
] ==
8.5
);
21
#endif
22
}
23