aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/unsupported-option.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/unsupported-option.c')
-rw-r--r--test/Driver/unsupported-option.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Driver/unsupported-option.c b/test/Driver/unsupported-option.c
new file mode 100644
index 000000000000..39f135e68348
--- /dev/null
+++ b/test/Driver/unsupported-option.c
@@ -0,0 +1,7 @@
+// RUN: not %clang %s --hedonism -### 2>&1 | \
+// RUN: FileCheck %s
+// RUN: not %clang %s --hell -### 2>&1 | \
+// RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
+
+// CHECK: error: unsupported option '--hedonism'
+// DID-YOU-MEAN: error: unsupported option '--hell', did you mean '--help'?