mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-01 21:04:04 -04:00
[dsymutil] Print warning/error for unknown/missing arguments.
After changing dsymutil to use libOption, we lost error reporting for missing required arguments (input files). Additionally, we stopped complaining about unknown arguments. This patch fixes both and adds a test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,3 +26,9 @@ HELP-NOT: -reverse-iterate
|
||||
|
||||
RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
|
||||
VERSION: {{ version }}
|
||||
|
||||
RUN: not dsymutil 2>&1 | FileCheck --check-prefix=NOINPUT %s
|
||||
NOINPUT: error: no input files specified
|
||||
|
||||
RUN: dsymutil -bogus -help 2>&1 | FileCheck --check-prefix=BOGUS %s
|
||||
BOGUS: warning: ignoring unknown option: -bogus
|
||||
|
||||
Reference in New Issue
Block a user