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-2746.c
blob
88e125a015f470c50b5feea2012afe3a87140dc8
1
/*
2
bug-2746.c
3
*/
4
5
#include <testfwk.h>
6
7
#include <stdint.h>
8
9
struct
object_t
10
{
11
uint8_t
field1
;
12
uint8_t
field2
;
13
};
14
15
void
testBug
(
void
)
16
{
17
#ifndef __SDCC
// Enable when the bug gets fixed!
18
(
intptr_t
)(&(((
struct
object_t
*)
0
)->
field2
));
19
#endif
20
}
21