Sign in
llvm
/
llvm-archive
/
4c0eaea2f24bb29c9834811d33e29a33d888873d
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040308-1.c
blob: 4c63535e7f7c79a8182675f6e14d85d657b63745 [
file
] [
log
] [
blame
]
/* This used to fail on SPARC with an unaligned memory access. */
void
foo
(
int
n
)
{
struct
S
{
int
i
[
n
];
unsigned
int
b
:
1
;
int
i2
;
}
__attribute__
((
packed
))
__attribute__
((
aligned
(
4
)));
struct
S s
;
s
.
i2
=
0
;
}
int
main
(
void
)
{
foo
(
4
);
return
0
;
}