Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20080222-1.c
blob: 6db83ccdf9028a7f10bfce67af6c7632d087407b [
file
] [
log
] [
blame
]
extern
void
abort
(
void
);
struct
container
{
unsigned
char
data
[
1
];
};
unsigned
char
space
[
6
]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
foo
(
struct
container
*
p
)
{
return
p
->
data
[
4
];
}
int
main
()
{
if
(
foo
((
struct
container
*)
space
)
!=
5
)
abort
();
return
0
;
}