#include <stdlib.h>
int main() {
  char *x = (char*)malloc(10 * sizeof(char));
  free(x);
  return x[5];
}

// CHECK: heap-use-after-free
// CHECKSLEEP: Sleeping for 1 second
// CHECKSTRIP-NOT: #0 0x{{.*}} ({{[/].*}})

#include <stdlib.h>
int main() {
  char *x = (char*)malloc(10 * sizeof(char));
  free(x);
  return x[5];
}

// CHECK: heap-use-after-free
// CHECK: free
// CHECK: main{{.*}}use-after-free.c:4
// CHECK: malloc
// CHECK: main{{.*}}use-after-free.c:3
// CHECKSLEEP: Sleeping for 1 second
// CHECKSTRIP-NOT: #0 0x{{.*}} ({{[/].*}})

Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries.
Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries.


git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@161948 91177308-0d34-0410-b5e6-96231b3b80d8
