1 | // RUN: %clangxx_memprof %s -o %t-default |
2 | // RUN: %run %t-default | FileCheck %s --check-prefix=DEFAULT |
3 | |
4 | // RUN: %clangxx_memprof %s -mllvm -memprof-runtime-default-options="print_text=true,log_path=stdout,atexit=false" -o %t |
5 | // RUN: %run %t | FileCheck %s |
6 | |
7 | #include <sanitizer/memprof_interface.h> |
8 | #include <stdio.h> |
9 | |
10 | int main() { |
11 | printf(format: "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 | |