testsuite: Add test for #15053
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 6 Jul 2018 15:01:38 +0000 (11:01 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 6 Jul 2018 18:08:37 +0000 (14:08 -0400)
Reviewers: Phyx

Reviewed By: Phyx

Subscribers: Phyx, rwbarton, thomie, carter

GHC Trac Issues: #15053

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

testsuite/tests/parser/should_fail/T15053.hs [new file with mode: 0644]
testsuite/tests/parser/should_fail/all.T

diff --git a/testsuite/tests/parser/should_fail/T15053.hs b/testsuite/tests/parser/should_fail/T15053.hs
new file mode 100644 (file)
index 0000000..44154a4
--- /dev/null
@@ -0,0 +1,3 @@
+{-# OPTIONS_GHC -O1 }
+"
+  #-}
index 1e71e40..93d0e0a 100644 (file)
@@ -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