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