rts: check arguments to flags that don't have any
authorCarlos Tomé <carlostome1990@gmail.com>
Sun, 22 Mar 2015 23:53:42 +0000 (00:53 +0100)
committerThomas Miedema <thomasmiedema@gmail.com>
Sun, 22 Mar 2015 23:55:06 +0000 (00:55 +0100)
commita20cc3d00c4ca0753fcdcb16199f173b3af44fe4
tree823def68ec02ccfe0c8a2cd5c476070ef865dc6d
parent12a03c44c006f142f93980e0dbdfab0f73db042c
rts: check arguments to flags that don't have any

There were some flags of the RTS that when given an argument (which they
don't have) were not firing an error.
e.g -Targument when the flag -T has no argument.
Now this is an error and affects the following flags:
-B -w -T -Z -P -Pa -c -t

Signed-off-by: Carlos Tomé <carlostome1990@gmail.com>
Reviewed By: austin, thomie, hvr

Differential Revision: https://phabricator.haskell.org/D748

GHC Trac Issues: #9839
rts/RtsFlags.c
testsuite/tests/rts/T9839_02.hs [new file with mode: 0755]
testsuite/tests/rts/T9839_03.hs [new file with mode: 0755]
testsuite/tests/rts/all.T