Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / compiler-rt / test / memprof / TestCases / default_options.cpp
blob4042a7df588b08c7f0dd49bb1a98c03d4a9b1ac9
1 // RUN: %clangxx_memprof -O2 %s -o %t && %run %t 2>&1 | FileCheck %s
3 // Check that overriding __memprof_default_options() takes precedence over the LLVM flag
4 // RUN: %clangxx_memprof -O2 %s -o %t-flag -mllvm -memprof-runtime-default-options="verbosity=0 help=0" && %run %t-flag 2>&1 | FileCheck %s
6 const char *kMemProfDefaultOptions = "verbosity=1 help=1";
8 extern "C" const char *__memprof_default_options() {
9 // CHECK: Available flags for MemProfiler:
10 return kMemProfDefaultOptions;
13 int main() {
14 return 0;