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
PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr66817.c
blob
7ec18b74d1c01a0c5259746ff64da524622a1d65
1
/* { dg-do compile { target ia32 } } */
2
/* { dg-options "-O2 -mno-sse -mno-mmx -miamcu" } */
3
4
extern
void
abort
(
void
);
5
int
6
main
(
int
argc
,
char
**
argv
)
7
{
8
int
size
=
10
;
9
typedef
struct
10
{
11
char
val
[
size
];
12
}
13
block
;
14
block a
,
b
;
15
block
__attribute__
((
noinline
))
16
retframe_block
()
17
{
18
return
*(
block
*) &
b
;
19
}
20
b
.
val
[
0
] =
1
;
21
b
.
val
[
9
] =
2
;
22
a
=
retframe_block
();
23
if
(
a
.
val
[
0
] !=
1
24
||
a
.
val
[
9
] !=
2
)
25
abort
();
26
return
0
;
27
}