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
/
20040308-1.c
blob
4c63535e7f7c79a8182675f6e14d85d657b63745
1
/* This used to fail on SPARC with an unaligned memory access. */
2
3
void
foo
(
int
n
)
4
{
5
struct
S
{
6
int
i
[
n
];
7
unsigned int
b
:
1
;
8
int
i2
;
9
}
__attribute__
((
packed
))
__attribute__
((
aligned
(
4
)));
10
11
struct
S s
;
12
13
s
.
i2
=
0
;
14
}
15
16
int
main
(
void
)
17
{
18
foo
(
4
);
19
20
return
0
;
21
}