[commit: ghc] master: testsuite: Add test for #12024 (926469f)

git at git.haskell.org git at git.haskell.org
Mon Nov 21 19:22:20 UTC 2016


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

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

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

commit 926469fcd9ba25b1c8f4b8113d6b6683259b9d6d
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon Nov 21 13:43:35 2016 -0500

    testsuite: Add test for #12024
    
    Test Plan: Validate
    
    Reviewers: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2702
    
    GHC Trac Issues: #12024


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

926469fcd9ba25b1c8f4b8113d6b6683259b9d6d
 testsuite/tests/ghci/scripts/T12024.script | 8 ++++++++
 testsuite/tests/ghci/scripts/T12024.stdout | 1 +
 testsuite/tests/ghci/scripts/all.T         | 1 +
 3 files changed, 10 insertions(+)

diff --git a/testsuite/tests/ghci/scripts/T12024.script b/testsuite/tests/ghci/scripts/T12024.script
new file mode 100644
index 0000000..4e64863
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T12024.script
@@ -0,0 +1,8 @@
+:set -XPatternSynonyms -XGADTs
+data A a where X :: A [x]
+
+pattern X' = X
+
+-- This should render the equality with ~ despite the pattern internally using
+-- GHC.Prim.~#.
+:info X'
diff --git a/testsuite/tests/ghci/scripts/T12024.stdout b/testsuite/tests/ghci/scripts/T12024.stdout
new file mode 100644
index 0000000..e01f43a
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T12024.stdout
@@ -0,0 +1 @@
+pattern X' :: () => a ~ [x] => A a 	-- Defined at <interactive>:4:1
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 4927abc..6dcc6b7 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -265,3 +265,4 @@ test('T12091',
      [expect_broken(12091), extra_run_opts('-fobject-code')],
      ghci_script, ['T12091.script'])
 test('T12523', normal, ghci_script, ['T12523.script'])
+test('T12024', normal, ghci_script, ['T12024.script'])



More information about the ghc-commits mailing list