summaryrefslogtreecommitdiffstats
path: root/tests/driver/exitcode_good_error_arg.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/driver/exitcode_good_error_arg.c')
-rw-r--r--tests/driver/exitcode_good_error_arg.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/driver/exitcode_good_error_arg.c b/tests/driver/exitcode_good_error_arg.c
new file mode 100644
index 0000000..093a754
--- /dev/null
+++ b/tests/driver/exitcode_good_error_arg.c
@@ -0,0 +1,19 @@
+//===--- exitcode_good_error_arg.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.
+//
+//===----------------------------------------------------------------------===//
+
+// IWYU_ARGS: -Xiwyu --error=100
+
+// When --error is provided, IWYU exits with error only if analysis finds IWYU
+// violations. In this case there are none, so IWYU exits with 0.
+
+/**** IWYU_SUMMARY(0)
+
+(tests/driver/exitcode_good_error_arg.c has correct #includes/fwd-decls)
+
+***** IWYU_SUMMARY */