summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-07-06 11:01:38 -0400
committerBen Gamari <ben@smart-cactus.org>2018-10-12 23:31:00 -0400
commit377975e0609a52c1ac008f03df06d8d5193234b2 (patch)
treea1b8a2cd0a7860c4e45d03453fc4b4eb1c46dc3e /testsuite
parent87266ea717de2df11d7b491bf3c525b7c1a1a47a (diff)
downloadhaskell-377975e0609a52c1ac008f03df06d8d5193234b2.tar.gz
testsuite: Add test for #15053
Reviewers: Phyx Reviewed By: Phyx Subscribers: Phyx, rwbarton, thomie, carter GHC Trac Issues: #15053 Differential Revision: https://phabricator.haskell.org/D4883 (cherry picked from commit f03f0d61bebe287e0df0254c175eb2f183d697aa)
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/parser/should_fail/T15053.hs3
-rw-r--r--testsuite/tests/parser/should_fail/all.T1
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/T15053.hs b/testsuite/tests/parser/should_fail/T15053.hs
new file mode 100644
index 0000000000..44154a48c0
--- /dev/null
+++ b/testsuite/tests/parser/should_fail/T15053.hs
@@ -0,0 +1,3 @@
+{-# OPTIONS_GHC -O1 }
+"
+ #-}
diff --git a/testsuite/tests/parser/should_fail/all.T b/testsuite/tests/parser/should_fail/all.T
index 1e71e40420..93d0e0a9dd 100644
--- a/testsuite/tests/parser/should_fail/all.T
+++ b/testsuite/tests/parser/should_fail/all.T
@@ -125,3 +125,4 @@ test('typeops_A', normal, compile_fail, [''])
test('typeops_B', normal, compile_fail, [''])
test('typeops_C', normal, compile_fail, [''])
test('typeops_D', normal, compile_fail, [''])
+test('T15053', expect_broken(15053), compile_fail, ['']) # shouldn't panic