16efa4d6cf9bb214a5e8ddbb224a69b38c4ae6de6Alexey Samsonov// RUN: %clang_asan -O2 %s -o %t 22d1fdb26e458c4ddc04155c1d421bced3ba90cd0Stephen Hines// RUN: env ASAN_OPTIONS="sleep_before_dying=1" not %run %t 2>&1 | FileCheck %s 341f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov 441f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov#include <stdlib.h> 541f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonovint main() { 641f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov char *x = (char*)malloc(10 * sizeof(char)); 741f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov free(x); 841f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov return x[5]; 941f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov // CHECK: Sleeping for 1 second 1041f85b9e6a88f801955d99c8a8233b97e64c51ffAlexey Samsonov} 11