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-2957.c
blob
7064d2e24dab369424901ce726d2a05589143ef2
1
/*
2
bug-2957.c
3
*/
4
5
#include <testfwk.h>
6
7
char
bug2957
(
char
*
p
,
int
i
,
char
c
)
8
{
9
p
[
0
] =
c
;
10
p
[
i
] =
8
;
11
return
p
[
0
];
// Always returns c.
12
}
13
14
void
testBug
(
void
)
15
{
16
char
c
;
17
ASSERT
(
bug2957
(&
c
,
0
,
0
) ==
8
);
18
}
19