1 | // RUN: %clangxx_memprof %s -o %t |
---|---|
2 | |
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 |
5 | |
6 | #include <stdlib.h> |
7 | #include <string.h> |
8 | |
9 | int main() { |
10 | char *x = (char *)malloc(size: 10); |
11 | memset(s: x, c: 0, n: 10); |
12 | free(ptr: x); |
13 | return 0; |
14 | } |
15 | |
16 | // CHECK: Recorded MIBs |
17 |