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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr8081.c
blob
008ec5a14289137dfaf0e5405138623afc2bcc9e
1
/* { dg-do run } */
2
3
extern
void
abort
(
void
);
4
int
5
main
(
int
argc
,
char
**
argv
)
6
{
7
int
size
=
10
;
8
typedef
struct
9
{
10
char
val
[
size
];
11
}
12
block
;
13
block a
,
b
;
14
block
__attribute__
((
noinline
))
15
retframe_block
()
16
{
17
return
*(
block
*) &
b
;
18
}
19
b
.
val
[
0
] =
1
;
20
b
.
val
[
9
] =
2
;
21
a
=
retframe_block
();
22
if
(
a
.
val
[
0
] !=
1
23
||
a
.
val
[
9
] !=
2
)
24
abort
();
25
return
0
;
26
}