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-2984.c
blob
d85429b2cce2b5054a9d2d9218b26fd3b21dfbc9
1
/* bug-2984.c
2
3
Missing diagnostic and crash on incomplete type in offsetof
4
*/
5
6
#ifdef TEST1
7
#include <stddef.h>
8
9
volatile
unsigned char
test1
=
0
;
10
volatile
unsigned char
test2
=
0
;
11
12
int
f
(
void
) {
13
14
test1
=
offsetof
(
struct
test_t
,
v1
);
/* ERROR */
15
test2
=
offsetof
(
int
,
v1
);
/* ERROR */
16
17
return
0
;
18
}
19
#endif
20