Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / compiler-rt / test / memprof / TestCases / set_options.cpp
blobdddcfcf98c5c088d3486d8fbf7214cb76c414f1a
1 // RUN: %clangxx_memprof %s -o %t-default
2 // RUN: %run %t-default | FileCheck %s --check-prefix=DEFAULT
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
7 #include <sanitizer/memprof_interface.h>
8 #include <stdio.h>
10 int main() {
11 printf("Options: \"%s\"\n", __memprof_default_options());
12 return 0;
15 // DEFAULT: Options: ""
16 // CHECK: Options: "print_text=true,log_path=stdout,atexit=false"