Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-2984.c
blobd85429b2cce2b5054a9d2d9218b26fd3b21dfbc9
1 /* bug-2984.c
3 Missing diagnostic and crash on incomplete type in offsetof
4 */
6 #ifdef TEST1
7 #include <stddef.h>
9 volatile unsigned char test1=0;
10 volatile unsigned char test2=0;
12 int f(void) {
14 test1=offsetof(struct test_t,v1); /* ERROR */
15 test2=offsetof(int,v1); /* ERROR */
17 return 0;
19 #endif