testsuite: add new test for desugar warnings/errors with -fno-code
authordoug <douglas.wilson@gmail.com>
Fri, 5 May 2017 13:18:53 +0000 (09:18 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 7 May 2017 16:29:06 +0000 (12:29 -0400)
commitbaa18def0da17f11497fecc6fe440cf125b50878
tree3515e924b2641e5aa5ea4a36225e2bc295b37a0a
parented0c7f8b1f91651203db4a0ee5931d47e1e6ab51
testsuite: add new test for desugar warnings/errors with -fno-code

Add a new (expect_broken) test T10600 that checks that the error:
Top-level bindings for unlifted types aren't allowed: is thrown when
compiling with -fno-code. This test currently fails because modules
compiled with -fno-code aren't desugared. There are several other errors
which can be thrown during desugaring that aren't tested for,
discoverable by grepping for "errDs".

Update .stderr files T8101 and T8101b. Presumably the compilation output
has changed slightly since they were written.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #10600, #8101

Differential Revision: https://phabricator.haskell.org/D3533
testsuite/tests/driver/T10600.hs [new file with mode: 0644]
testsuite/tests/driver/T10600.stderr [new file with mode: 0644]
testsuite/tests/driver/T8101.stderr
testsuite/tests/driver/T8101b.stderr
testsuite/tests/driver/all.T