summaryrefslogtreecommitdiffstats
path: root/test/Frontend/verify-unknown-arg.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/verify-unknown-arg.c')
-rw-r--r--test/Frontend/verify-unknown-arg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Frontend/verify-unknown-arg.c b/test/Frontend/verify-unknown-arg.c
new file mode 100644
index 0000000..5767dae
--- /dev/null
+++ b/test/Frontend/verify-unknown-arg.c
@@ -0,0 +1,6 @@
+// RUN: not %clang_cc1 -asdf -verify %s 2>&1 | FileCheck %s
+
+// expected-no-diagnostics
+
+// CHECK: error: 'error' diagnostics seen but not expected:
+// CHECK-NEXT: (frontend): unknown argument: '-asdf'
OpenPOWER on IntegriCloud