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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20100708-1.c
blob
590a94a70b7c6c71ef1b02275a76f1364688ac26
1
/* PR middle-end/44843 */
2
/* Verify that we don't use the alignment of struct S for inner accesses. */
3
4
struct
S
5
{
6
double
for_alignment
;
7
struct
{
int
x
,
y
,
z
; }
a
[
16
];
8
};
9
10
void
f
(
struct
S
*
s
)
__attribute__
((
noinline
));
11
12
void
f
(
struct
S
*
s
)
13
{
14
unsigned int
i
;
15
16
for
(
i
=
0
;
i
<
16
; ++
i
)
17
{
18
s
->
a
[
i
].
x
=
0
;
19
s
->
a
[
i
].
y
=
0
;
20
s
->
a
[
i
].
z
=
0
;
21
}
22
}
23
24
int
main
(
void
)
25
{
26
struct
S s
;
27
f
(&
s
);
28
return
0
;
29
}