Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
asan
/
use-after-scope-5.C
blob: 7e28fc35e6d85a932c1ea44dabc55bae48ff50ab [
file
] [
log
] [
blame
]
// { dg-do run }
int
*
__attribute__
((
optimize
((
"-O0"
))))
fn1
(
int
*
a
)
{
return
a
;
}
void
fn2
()
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
int
*
a
;
(
a
)
=
fn1
(
a
);
}
}
int
main
()
{
fn2
();
}