[commit: ghc] master: Test Trac #11444 (b8f1b01)

git at git.haskell.org git at git.haskell.org
Fri Jan 20 14:39:31 UTC 2017


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

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

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

commit b8f1b018312d83a4c7a760ef3a5cf2bb067bfbf0
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Jan 20 14:22:22 2017 +0000

    Test Trac #11444


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

b8f1b018312d83a4c7a760ef3a5cf2bb067bfbf0
 testsuite/tests/simplCore/should_compile/T11444.hs | 9 +++++++++
 testsuite/tests/simplCore/should_compile/all.T     | 1 +
 2 files changed, 10 insertions(+)

diff --git a/testsuite/tests/simplCore/should_compile/T11444.hs b/testsuite/tests/simplCore/should_compile/T11444.hs
new file mode 100644
index 0000000..0f79392
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T11444.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE MagicHash, BangPatterns #-}
+
+-- Produces a Lint error in GHC 8.0
+
+module T11444 where
+import GHC.Exts (reallyUnsafePtrEquality#, Int (..))
+
+ptrEq :: a -> a -> Bool
+ptrEq !x !y = I# (reallyUnsafePtrEquality# x y) == 1
diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T
index 87d10e4..19e9f1d 100644
--- a/testsuite/tests/simplCore/should_compile/all.T
+++ b/testsuite/tests/simplCore/should_compile/all.T
@@ -262,3 +262,4 @@ test('T13025',
      run_command,
      ['$MAKE -s --no-print-directory T13025'])
 test('T13156', normal, run_command, ['$MAKE -s --no-print-directory T13156'])
+test('T11444', normal, compile, [''])



More information about the ghc-commits mailing list