diff options
Diffstat (limited to 'test/sanitizer_common/TestCases/options-include.cc')
-rw-r--r-- | test/sanitizer_common/TestCases/options-include.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/sanitizer_common/TestCases/options-include.cc b/test/sanitizer_common/TestCases/options-include.cc new file mode 100644 index 0000000000000..ae8995164853c --- /dev/null +++ b/test/sanitizer_common/TestCases/options-include.cc @@ -0,0 +1,21 @@ +// RUN: %clangxx -O0 %s -o %t +// RUN: echo -e "symbolize=1\ninclude='%t.options2.txt'" >%t.options1.txt +// RUN: echo -e "help=1\n" >%t.options2.txt +// RUN: cat %t.options1.txt +// RUN: cat %t.options2.txt +// RUN: %tool_options="help=0:include='%t.options1.txt'" %run %t 2>&1 | tee %t.out +// RUN: FileCheck %s --check-prefix=CHECK-VERBOSITY1 <%t.out +// RUN: %tool_options="include='%t.options1.txt',help=0" %run %t 2>&1 | tee %t.out +// RUN: FileCheck %s --check-prefix=CHECK-VERBOSITY0 <%t.out +// RUN: %tool_options="include='%t.options-not-found.txt',help=1" not %run %t 2>&1 | tee %t.out +// RUN: FileCheck %s --check-prefix=CHECK-NOT-FOUND < %t.out + +#include <stdio.h> + +int main() { + fprintf(stderr, "done\n"); +} + +// CHECK-VERBOSITY1: Available flags for +// CHECK-VERBOSITY0-NOT: Available flags for +// CHECK-NOT-FOUND: Failed to read options from |