repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git]
/
compiler-rt
/
test
/
asan
/
TestCases
/
use-after-scope-nobug.cpp
blob
e401c94672b06080fcf137a54579391abed9b395
1
// RUN: %clangxx_asan -O1 %s -o %t && %run %t
2
3
#include <stdio.h>
4
#include <stdlib.h>
5
6
int
*
p
[
3
];
7
8
int
main
() {
9
// Variable goes in and out of scope.
10
for
(
int
i
=
0
;
i
<
3
;
i
++) {
11
int
x
;
12
p
[
i
] = &
x
;
13
}
14
printf
(
"PASSED
\n
"
);
15
return
0
;
16
}