Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr21173.c
blob: 61459bca7e56c84b0a2b23813e7e70536b00dbf2 [
file
] [
log
] [
blame
]
void
abort
(
void
);
char
q
;
void
*
a
[
2
];
void
foo
(
char
*
p
)
{
int
i
;
for
(
i
=
0
;
i
<
2
;
i
++)
a
[
i
]
+=
p
-
&
q
;
}
int
main
(
void
)
{
int
i
;
foo
(&
q
);
for
(
i
=
0
;
i
<
2
;
i
++)
if
(
a
[
i
])
abort
();
return
0
;
}