repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* expmed.c (flip_storage_order): Deal with complex modes specially.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040308-1.c
blob
4277a5068bece78eb7ee495b9f18c535a0adaa23
1
/* { dg-require-effective-target alloca } */
2
/* This used to fail on SPARC with an unaligned memory access. */
3
4
void
foo
(
int
n
)
5
{
6
struct
S
{
7
int
i
[
n
];
8
unsigned int
b
:
1
;
9
int
i2
;
10
}
__attribute__
((
packed
))
__attribute__
((
aligned
(
4
)));
11
12
struct
S s
;
13
14
s
.
i2
=
0
;
15
}
16
17
int
main
(
void
)
18
{
19
foo
(
4
);
20
21
return
0
;
22
}