summaryrefslogtreecommitdiff
path: root/clang/test/Driver/unknown-arg.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/unknown-arg.c')
-rw-r--r--clang/test/Driver/unknown-arg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/unknown-arg.c b/clang/test/Driver/unknown-arg.c
new file mode 100644
index 0000000..5d0f7af
--- /dev/null
+++ b/clang/test/Driver/unknown-arg.c
@@ -0,0 +1,4 @@
+// RUN: not %clang_cc1 %s -cake-is-lie 2> %t.log
+// RUN: FileCheck %s -input-file=%t.log
+
+// CHECK: unknown argument