Skip to content

Commit 88ab7fa

Browse files
committed
add test
1 parent 9ba0a77 commit 88ab7fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/test/memprof/TestCases/default_options.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %clangxx_memprof -O2 %s -o %t && %run %t 2>&1 | FileCheck %s
22

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
5+
36
const char *kMemProfDefaultOptions = "verbosity=1 help=1";
47

58
extern "C" const char *__memprof_default_options() {

0 commit comments

Comments
 (0)