Home | History | Annotate | Download | only in TestCases
      1 // RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
      2 
      3 #include <stdio.h>
      4 #include <stdlib.h>
      5 
      6 extern "C"
      7 bool __asan_symbolize(const void *pc, char *out_buffer, int out_size) {
      8   snprintf(out_buffer, out_size, "MySymbolizer");
      9   return true;
     10 }
     11 
     12 int main() {
     13   char *x = (char*)malloc(10 * sizeof(char));
     14   free(x);
     15   return x[5];
     16   // CHECK: MySymbolizer
     17 }
     18