summaryrefslogtreecommitdiffstats
path: root/tests/driver/exitcode_bad_args.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/driver/exitcode_bad_args.c')
-rw-r--r--tests/driver/exitcode_bad_args.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/driver/exitcode_bad_args.c b/tests/driver/exitcode_bad_args.c
new file mode 100644
index 0000000..4aaff4b
--- /dev/null
+++ b/tests/driver/exitcode_bad_args.c
@@ -0,0 +1,16 @@
+//===--- exitcode_bad_args.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: -some -unsupported -Xiwyu -arguments
+
+// When argument parsing fails, IWYU exits with code 1.
+
+/**** IWYU_SUMMARY(1)
+
+***** IWYU_SUMMARY */