diff options
Diffstat (limited to 'tests/driver/exitcode_syntax_error.c')
-rw-r--r-- | tests/driver/exitcode_syntax_error.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/driver/exitcode_syntax_error.c b/tests/driver/exitcode_syntax_error.c new file mode 100644 index 0000000..6884c22 --- /dev/null +++ b/tests/driver/exitcode_syntax_error.c @@ -0,0 +1,19 @@ +//===--- exitcode_syntax_error.c - test input file for iwyu ---------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// Tests that IWYU exits with code 1 when Clang fails to parse the provided +// source code. + +// IWYU: expected ';' after top level declarator +// IWYU: unknown type name 'this' +this is not valid C code; + +/**** IWYU_SUMMARY(1) + +***** IWYU_SUMMARY */ |