Fix recompilation bug with default class methods (#15970)
[ghc.git] / testsuite / tests / driver / T10600.hs
1 {-# LANGUAGE MagicHash #-}
2 module T10600 where
3
4 import GHC.Prim
5
6 -- This shouldn't compile as unlifted bindings aren't allowed at top-level.
7 -- However, #10600 described the situation where an error isn't throw when we
8 -- compile with -fno-code.
9 foo :: Int#
10 foo = 10600#