summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/TestCases/options-help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/sanitizer_common/TestCases/options-help.cpp')
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/options-help.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/options-help.cpp b/compiler-rt/test/sanitizer_common/TestCases/options-help.cpp
new file mode 100644
index 00000000000..913377db70f
--- /dev/null
+++ b/compiler-rt/test/sanitizer_common/TestCases/options-help.cpp
@@ -0,0 +1,8 @@
+// RUN: %clangxx -O0 %s -o %t
+// RUN: %env_tool_opts=help=1 %run %t 2>&1 | FileCheck %s
+
+int main() {
+}
+
+// CHECK: Available flags for {{.*}}Sanitizer:
+// CHECK: handle_segv
OpenPOWER on IntegriCloud