Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / compiler-rt / test / memprof / TestCases / memprof_profile_dump_on_abort.cpp
blob5df611b7e606a4e4c67315a5310036a68f00545a
1 // RUN: %clangxx_memprof %s -o %t
3 // RUN: %env_memprof_opts=print_text=true:log_path=stdout:handle_abort=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-TEXT %s
5 #include <stdlib.h>
6 #include <string.h>
7 int main(int argc, char **argv) {
8 char *x = (char *)malloc(10);
9 memset(x, 0, 10);
10 free(x);
11 abort();
12 return 0;
15 // CHECK-TEXT: MemProfiler:DEADLYSIGNAL
16 // CHECK-TEXT: Recorded MIBs (incl. live on exit):
17 // CHECK-TEXT: Memory allocation stack id
18 // CHECK-TEXT: Stack for id