brintos

brintos / llvm-project-archived public Read only

0
0
Text · 386 B · 426849d Raw
17 lines · cpp
1// RUN: %clangxx_memprof %s -o %t2 3// RUN: %env_memprof_opts=print_text=true:log_path=stdout:dump_at_exit=false %run %t | count 04// RUN: %env_memprof_opts=print_text=true:log_path=stdout:dump_at_exit=true %run %t | FileCheck %s5 6#include <stdlib.h>7#include <string.h>8 9int main() {10  char *x = (char *)malloc(10);11  memset(x, 0, 10);12  free(x);13  return 0;14}15 16// CHECK: Recorded MIBs17