[commit: ghc] master: testsuite: Add test for #15053 (f03f0d6)

git at git.haskell.org git at git.haskell.org
Fri Jul 6 18:10:27 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f03f0d61bebe287e0df0254c175eb2f183d697aa/ghc

>---------------------------------------------------------------

commit f03f0d61bebe287e0df0254c175eb2f183d697aa
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Fri Jul 6 11:01:38 2018 -0400

    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


>---------------------------------------------------------------

f03f0d61bebe287e0df0254c175eb2f183d697aa
 testsuite/tests/parser/should_fail/T15053.hs | 3 +++
 testsuite/tests/parser/should_fail/all.T     | 1 +
 2 files changed, 4 insertions(+)

diff --git a/testsuite/tests/parser/should_fail/T15053.hs b/testsuite/tests/parser/should_fail/T15053.hs
new file mode 100644
index 0000000..44154a4
--- /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 1e71e40..93d0e0a 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



More information about the ghc-commits mailing list