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 }
11