17 lines · cpp
1// RUN: %clangxx_memprof %s -o %t-default2// RUN: %run %t-default | FileCheck %s --check-prefix=DEFAULT3 4// RUN: %clangxx_memprof %s -mllvm -memprof-runtime-default-options="print_text=true,log_path=stdout,atexit=false" -o %t5// RUN: %run %t | FileCheck %s6 7#include <sanitizer/memprof_interface.h>8#include <stdio.h>9 10int main() {11 printf("Options: \"%s\"\n", __memprof_default_options());12 return 0;13}14 15// DEFAULT: Options: ""16// CHECK: Options: "print_text=true,log_path=stdout,atexit=false"17