repo.or.cz
/
blocksruntime.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move MSan lit-tests under test/msan
[blocksruntime.git]
/
lib
/
asan
/
lit_tests
/
TestCases
/
sleep_before_dying.c
blob
8dee9f2778ceb52ab2733c00daa1b99f723747a0
1
// RUN: %clang_asan -O2 %s -o %t
2
// RUN: ASAN_OPTIONS="sleep_before_dying=1" not %t 2>&1 | FileCheck %s
3
4
#include <stdlib.h>
5
int
main
() {
6
char
*
x
= (
char
*)
malloc
(
10
*
sizeof
(
char
));
7
free
(
x
);
8
return
x
[
5
];
9
// CHECK: Sleeping for 1 second
10
}