diff options
author | roland <rsx@bluewin.ch> | 2018-08-06 12:50:38 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-08-06 17:53:14 -0400 |
commit | ff06176b87078ce56cc7b6b3405a029ef3d0046f (patch) | |
tree | c9c4f42c61e49fef99be899a628a8b8915851133 /testsuite | |
parent | 4fc6524a2a4a0003495a96c8b84783286f65c198 (diff) | |
download | haskell-ff06176b87078ce56cc7b6b3405a029ef3d0046f.tar.gz |
Improve error message for flags with missing required arguments (#12625)
Test Plan: make TEST=T12625
Reviewers: jstolarek, austin, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #12625
Differential Revision: https://phabricator.haskell.org/D5030
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/driver/T12625.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T12625.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/all.T | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T12625.hs b/testsuite/tests/driver/T12625.hs new file mode 100644 index 0000000000..b34b9142d7 --- /dev/null +++ b/testsuite/tests/driver/T12625.hs @@ -0,0 +1,2 @@ +main :: IO() +main = putStrLn "T12625" diff --git a/testsuite/tests/driver/T12625.stderr b/testsuite/tests/driver/T12625.stderr new file mode 100644 index 0000000000..a171dbda90 --- /dev/null +++ b/testsuite/tests/driver/T12625.stderr @@ -0,0 +1,2 @@ +ghc: on the commandline: missing argument for flag: -I +Usage: For basic information, try the `--help' option. diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index 63975981c6..07dc3bf916 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -264,6 +264,8 @@ test('T12192', normal, run_command, ['mkdir foo && (cd foo && {compiler} -v0 ../ test('T10923', [], run_command, ['$MAKE -s --no-print-directory T10923']) +test('T12625', normal, compile_fail, ['-I']) + test('T12752pass', normal, compile, ['-DSHOULD_PASS=1 -Wcpp-undef']) test('T12955', normal, run_command, ['$MAKE -s --no-print-directory T12955']) |