Sign in
chromium
/
native_client
/
pnacl-compiler-rt
/
52bd9fb97c7c002ff14eee73a5dd9488c2675f1c
/
.
/
test
/
asan
/
TestCases
/
use-after-scope-nobug.cc
blob: 21b085c962751c155c916e9bd6dd2afd2bfe9c5c [
file
] [
log
] [
blame
]
// RUN: %clangxx_asan -O0 -fsanitize=use-after-scope %s -o %t && %run %t
// XFAIL: *
#include
<stdio.h>
int
main
()
{
int
*
p
=
0
;
// Variable goes in and out of scope.
for
(
int
i
=
0
;
i
<
3
;
i
++)
{
int
x
=
0
;
p
=
&
x
;
}
printf
(
"PASSED\n"
);
return
0
;
}