• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_asan -O2 %s -o %t
2 // RUN: %env_asan_opts=sleep_after_init=1 not %run %t 2>&1 | FileCheck %s
3 
4 #include <stdlib.h>
main()5 int main() {
6   // CHECK: Sleeping for 1 second
7   char *x = (char*)malloc(10 * sizeof(char));
8   free(x);
9   return x[5];
10 }
11