summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T13611.hs
blob: 9bc894af59f308f0caddf39f389528a629eb82e8 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE MagicHash, UnboxedTuples #-}
import GHC.Exts
import GHC.Types

main = do
    let local = ()
    let null = 0## :: Word#
    let triple = (# local, null, null #)
    IO (\s -> case mkWeakNoFinalizer# triple () s of (# s, r #) -> (# s, () #))