Test Trac #8262
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 10 Sep 2013 17:02:17 +0000 (18:02 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 10 Sep 2013 17:02:17 +0000 (18:02 +0100)
testsuite/tests/typecheck/should_fail/T8262.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T8262.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T

diff --git a/testsuite/tests/typecheck/should_fail/T8262.hs b/testsuite/tests/typecheck/should_fail/T8262.hs
new file mode 100644 (file)
index 0000000..6bdaef3
--- /dev/null
@@ -0,0 +1,5 @@
+{-# LANGUAGE MagicHash #-}
+
+module T8262 where
+
+foo x = Just (1#)
diff --git a/testsuite/tests/typecheck/should_fail/T8262.stderr b/testsuite/tests/typecheck/should_fail/T8262.stderr
new file mode 100644 (file)
index 0000000..d2664a3
--- /dev/null
@@ -0,0 +1,12 @@
+ghc-stage1: panic! (the 'impossible' happened)
+  (GHC version 7.7.20130829 for x86_64-unknown-linux):
+       ASSERT failed!
+    file compiler/coreSyn/MkCore.lhs line 303
+    Sym cobox{v dfK} [lid]
+    ghc-prim:GHC.Prim.Int#{(w) tc 3G}
+    a{tv afq} [tv]
+    ghc-prim:GHC.Prim.#{(w) tc 34j}
+    ghc-prim:GHC.Prim.*{(w) tc 34d}
+
+Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
+
index 9006845..f1aaee0 100644 (file)
@@ -315,3 +315,4 @@ test('T7892', normal, compile_fail, [''])
 test('T7809', normal, compile_fail, [''])
 test('T7989', normal, compile_fail, [''])
 test('T8142', normal, compile_fail, [''])
+test('T8262', normal, compile_fail, [''])