summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail075.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail075.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail075.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail075.hs b/testsuite/tests/typecheck/should_fail/tcfail075.hs
new file mode 100644
index 0000000000..c14f276b2d
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail075.hs
@@ -0,0 +1,20 @@
+{-# LANGUAGE MagicHash #-}
+
+-- !!! Test top-level unboxed types
+
+module ShouldFail where
+
+import GHC.Base
+import GHC.Prim
+
+x = 1#
+
+y :: Int#
+y = x +# 1#
+
+main = let
+ z = x -# y
+ in
+ if z ># 3# then putStrLn "Yes"
+ else putStrLn "No"
+