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
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
valdiag
/
tests
/
bug-3060.c
blob
9fccd60177ee5e582284c2b8fa9c6e4ab5b055cd
1
/* bug-3389.c
2
3
Missing error message and segfault on attempt to initalize a global variable using an expression that contains a pointer dereference.
4
*/
5
6
#ifdef TEST1
7
8
int
i
;
9
int
j
=
i
;
/* ERROR */
10
11
struct
s
12
{
13
char
c
[
2
];
14
int
a
;
15
};
16
17
struct
s x
;
18
char
*
c
=
x
.
c
;
// SDCC users expect this to work.
19
int
y
= ((
struct
s
*)&
x
)->
a
;
/* ERROR */
20
21
#endif
22