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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-struct-ini-2.c
blob
c0c5d4967bab77bd232c7ee624214b754687aa3a
1
/*
2
struct-ini-2.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
struct
{
12
int
a
:
4
;
13
int
:
4
;
14
int
b
:
4
;
15
int
c
:
4
;
16
}
x
= {
2
,
3
,
4
};
17
18
void
19
testTortureExecute
(
void
)
20
{
21
if
(
x
.
a
!=
2
)
22
ASSERT
(
0
);
23
if
(
x
.
b
!=
3
)
24
ASSERT
(
0
);
25
if
(
x
.
c
!=
4
)
26
ASSERT
(
0
);
27
return
;
28
}
29