summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/codeGen/should_run/2838.hs
blob: 0933c1203ebafc8241786a017dbdaca034165ba7 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE MagicHash, UnboxedTuples #-}
module Main(main,complement) where

import GHC.Base
import GHC.Num

complement (I# x#) = I# (word2Int# (int2Word# (4294967295#) `xor#` int2Word# (-1#)))

main = print (complement (-1))