[PATCH] D41912: [Driver] Test for correct '--version' suggestion
Brian Gesiak via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 10 12:25:01 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC322220: [Driver] Test for correct '--version' suggestion (authored by modocache, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D41912?vs=129314&id=129321#toc
Repository:
rC Clang
https://reviews.llvm.org/D41912
Files:
test/Driver/unknown-arg.c
Index: test/Driver/unknown-arg.c
===================================================================
--- test/Driver/unknown-arg.c
+++ test/Driver/unknown-arg.c
@@ -1,6 +1,6 @@
// RUN: not %clang %s -cake-is-lie -%0 -%d -HHHH -munknown-to-clang-option -print-stats -funknown-to-clang-option -### 2>&1 | \
// RUN: FileCheck %s
-// RUN: not %clang %s -stdlibs=foo -hell -### 2>&1 | \
+// RUN: not %clang %s -stdlibs=foo -hell -version -### 2>&1 | \
// RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
// RUN: %clang_cl -cake-is-lie -%0 -%d -HHHH -munknown-to-clang-option -print-stats -funknown-to-clang-option -### -c -- %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=CL
@@ -22,6 +22,7 @@
// CHECK: error: unknown argument: '-funknown-to-clang-option'
// DID-YOU-MEAN: error: unknown argument '-stdlibs=foo', did you mean '-stdlib=foo'?
// DID-YOU-MEAN: error: unknown argument '-hell', did you mean '-help'?
+// DID-YOU-MEAN: error: unknown argument '-version', did you mean '--version'?
// CL: warning: unknown argument ignored in clang-cl: '-cake-is-lie'
// CL: warning: unknown argument ignored in clang-cl: '-%0'
// CL: warning: unknown argument ignored in clang-cl: '-%d'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41912.129321.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180110/6ed3a7dc/attachment.bin>
More information about the cfe-commits
mailing list