repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
strct-pack-3.c
blob
8f91b040ca8cc52f23af49f3b157a473e4a7646f
1
typedef
struct
2
{
3
short
i
__attribute__
((
aligned
(
2
),
packed
));
4
int
f
[
2
]
__attribute__
((
aligned
(
2
),
packed
));
5
}
A
;
6
7
f
(
ap
)
8
A
*
ap
;
9
{
10
short
i
,
j
=
1
;
11
12
i
=
ap
->
f
[
1
];
13
i
+=
ap
->
f
[
j
];
14
for
(
j
=
0
;
j
<
2
;
j
++)
15
i
+=
ap
->
f
[
j
];
16
17
return
i
;
18
}
19
20
main
()
21
{
22
A a
;
23
a
.
f
[
0
] =
100
;
24
a
.
f
[
1
] =
13
;
25
if
(
f
(&
a
) !=
139
)
26
abort
();
27
exit
(
0
);
28
}