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
;