Test Trac #11444
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 20 Jan 2017 14:22:22 +0000 (14:22 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 20 Jan 2017 14:39:02 +0000 (14:39 +0000)
testsuite/tests/simplCore/should_compile/T11444.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T

diff --git a/testsuite/tests/simplCore/should_compile/T11444.hs b/testsuite/tests/simplCore/should_compile/T11444.hs
new file mode 100644 (file)
index 0000000..0f79392
--- /dev/null
@@ -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
index 87d10e4..19e9f1d 100644 (file)
@@ -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, [''])