diff options
Diffstat (limited to 'test/sanitizer_common/TestCases/options-invalid.cc')
-rw-r--r-- | test/sanitizer_common/TestCases/options-invalid.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/sanitizer_common/TestCases/options-invalid.cc b/test/sanitizer_common/TestCases/options-invalid.cc new file mode 100644 index 000000000000..3c261405c992 --- /dev/null +++ b/test/sanitizer_common/TestCases/options-invalid.cc @@ -0,0 +1,15 @@ +// RUN: %clangxx -O0 %s -o %t +// RUN: %tool_options=invalid_option_name=10,verbosity=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-V1 +// RUN: %tool_options=invalid_option_name=10 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-V0 + +#include <stdio.h> + +int main() { + fprintf(stderr, "done\n"); +} + +// CHECK-V1: WARNING: found 1 unrecognized +// CHECK-V1: invalid_option_name +// CHECK-V0-NOT: WARNING: found 1 unrecognized +// CHECK-V0-NOT: invalid_option_name +// CHECK: done |