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-2423.c
blob
4ce23218f1893b7f068152b3443d141fc86ecb32
1
/*
2
bug-2423.c
3
*/
4
5
#include <testfwk.h>
6
7
#pragma disable_warning 147
8
9
struct
foo_t
{
10
unsigned int
a
,
b
,
c
;
11
};
12
13
struct
foo_t foo
= {
0xaaaa
,
0x5555
,
0xcccc
,
0x3333
,
0xffff
,
0x0000
,
0x1111
,
0x2222
,
0x4444
,
0x6666
};
14
15
void
testBug
(
void
)
16
{
17
ASSERT
(
foo
.
a
==
0xaaaa
);
18
ASSERT
(
foo
.
b
==
0x5555
);
19
ASSERT
(
foo
.
c
==
0xcccc
);
20
}