[commit: ghc] master: testsuite: Add test for #14925 (0703c00)

git at git.haskell.org git at git.haskell.org
Mon Mar 26 00:12:18 UTC 2018


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

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

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

commit 0703c00f7172608ee6d7ff7d422fe3755339e9bc
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Sun Mar 25 15:33:48 2018 -0400

    testsuite: Add test for #14925
    
    Test Plan: Validate
    
    Reviewers: alpmestan
    
    Reviewed By: alpmestan
    
    Subscribers: alpmestan, leftaroundabout, rwbarton, thomie, carter
    
    GHC Trac Issues: #14925
    
    Differential Revision: https://phabricator.haskell.org/D4512


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

0703c00f7172608ee6d7ff7d422fe3755339e9bc
 T14925.stdout                                  | 1 +
 testsuite/tests/typecheck/should_run/T14925.hs | 6 ++++++
 testsuite/tests/typecheck/should_run/all.T     | 1 +
 3 files changed, 8 insertions(+)

diff --git a/T14925.stdout b/T14925.stdout
new file mode 100644
index 0000000..6a44a99
--- /dev/null
+++ b/T14925.stdout
@@ -0,0 +1 @@
+Ω
diff --git a/testsuite/tests/typecheck/should_run/T14925.hs b/testsuite/tests/typecheck/should_run/T14925.hs
new file mode 100644
index 0000000..ed57a82
--- /dev/null
+++ b/testsuite/tests/typecheck/should_run/T14925.hs
@@ -0,0 +1,6 @@
+import Data.Typeable
+
+data Ω = Ω
+
+main :: IO ()
+main = print $ typeOf Ω
diff --git a/testsuite/tests/typecheck/should_run/all.T b/testsuite/tests/typecheck/should_run/all.T
index 2907612..f7643ba 100755
--- a/testsuite/tests/typecheck/should_run/all.T
+++ b/testsuite/tests/typecheck/should_run/all.T
@@ -125,3 +125,4 @@ test('T11715', exit_code(1), compile_and_run, [''])
 test('T13594a', normal, ghci_script, ['T13594a.script'])
 test('T14218', normal, compile_and_run, [''])
 test('T14236', normal, compile_and_run, [''])
+test('T14925', expect_broken(14925), compile_and_run, [''])



More information about the ghc-commits mailing list