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
/
gcc-torture-execute-931110-1.c
blob
6bc4ca541e5c44bca8dc8bc5378422ff79746089
1
/*
2
931110-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
typedef
struct
12
{
13
short
f
:
3
,
g
:
3
,
h
:
10
;
14
}
small
;
15
16
struct
17
{
18
int
i
;
19
small s
[
10
];
20
}
x
;
21
22
void
23
testTortureExecute
(
void
)
24
{
25
int
i
;
26
for
(
i
=
0
;
i
<
10
;
i
++)
27
x
.
s
[
i
].
f
=
0
;
28
return
;
29
}
30