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
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
strct-pack-1.c
blob
7b702f2cd682f3ba992eb7dd4fdd9529b33dbb5a
1
typedef
struct
2
{
3
short
s
__attribute__
((
aligned
(
2
),
packed
));
4
double
d
__attribute__
((
aligned
(
2
),
packed
));
5
}
TRIAL
;
6
7
int
8
check
(
TRIAL
*
t
)
9
{
10
if
(
t
->
s
!=
1
||
t
->
d
!=
16.0
)
11
return
1
;
12
return
0
;
13
}
14
15
main
()
16
{
17
TRIAL trial
;
18
19
trial
.
s
=
1
;
20
trial
.
d
=
16.0
;
21
22
if
(
check
(&
trial
) !=
0
)
23
abort
();
24
exit
(
0
);
25
}