Make test more lenient for custom clang version strings
[llvm-project.git] / compiler-rt / test / memprof / TestCases / dump_at_exit.cpp
blob426849d1cea01e410d89ed9201212fdc18e5313a
1 // RUN: %clangxx_memprof %s -o %t
3 // RUN: %env_memprof_opts=print_text=true:log_path=stdout:dump_at_exit=false %run %t | count 0
4 // RUN: %env_memprof_opts=print_text=true:log_path=stdout:dump_at_exit=true %run %t | FileCheck %s
6 #include <stdlib.h>
7 #include <string.h>
9 int main() {
10 char *x = (char *)malloc(10);
11 memset(x, 0, 10);
12 free(x);
13 return 0;
16 // CHECK: Recorded MIBs