summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/all.T
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2015-11-12 20:33:39 +0100
committerBen Gamari <ben@smart-cactus.org>2015-11-12 20:33:39 +0100
commit5d6133bec0f682e86ee31bbdb6d82e6fb2ede8f7 (patch)
tree48af103f30112be15049e99c63e8d0f02289ab40 /testsuite/tests/ghc-api/all.T
parentac2e1e57ac0755af0d296c072584d27e4e29f9b1 (diff)
downloadhaskell-5d6133bec0f682e86ee31bbdb6d82e6fb2ede8f7.tar.gz
Ignore comments in getOptions
When Opt_KeepRawTokenStream is turned on then getOptions fails to find the language pragmas which can cause unexpected parse errors when using the GHC API. A simple solution is to make it skip over any comments in the token stream. Test Plan: ./validate Reviewers: austin, bgamari Subscribers: alanz, thomie Differential Revision: https://phabricator.haskell.org/D1444 GHC Trac Issues: #10942
Diffstat (limited to 'testsuite/tests/ghc-api/all.T')
-rw-r--r--testsuite/tests/ghc-api/all.T3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/all.T b/testsuite/tests/ghc-api/all.T
index c4783ea15d..dee74b7e94 100644
--- a/testsuite/tests/ghc-api/all.T
+++ b/testsuite/tests/ghc-api/all.T
@@ -14,3 +14,6 @@ test('T9595', extra_run_opts('"' + config.libdir + '"'),
test('T10508_api', extra_run_opts('"' + config.libdir + '"'),
compile_and_run,
['-package ghc'])
+test('T10942', extra_run_opts('"' + config.libdir + '"'),
+ compile_and_run,
+ ['-package ghc'])