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
[ASan tests] Use ASAN_OPTIONS in a portable way
[blocksruntime.git]
/
test
/
asan
/
TestCases
/
sleep_before_dying.c
blob
28ae0bf66d4791cf197131898cf6a5f4a53a7391
1
// RUN: %clang_asan -O2 %s -o %t
2
// RUN: env ASAN_OPTIONS="sleep_before_dying=1" not %run %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
}