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-2381.c
blob
49d610f34f99c9c9b670b9966e35fa7aff1f1863
1
/*
2
bug-2381.c
3
*/
4
5
#include <testfwk.h>
6
7
#pragma disable_warning 88
8
9
#define VAL 0x5555
10
11
void
foo
(
char
*
p
)
12
{
13
ASSERT
(
p
== (
char
*)
VAL
);
14
}
15
16
void
testBug
(
void
)
17
{
18
foo
(&(*((
char
*)
VAL
)));
19
foo
(&(*(&(*((
char
*)
VAL
)))));
20
}