summaryrefslogtreecommitdiff
path: root/testsuite/tests/primops/should_run/T10481.hs
blob: bfdb35626e1576a4da3ac4bd15638f2aa1aafd61 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE MagicHash #-}

import GHC.Exts
import Control.Exception

f :: ArithException -> Int#
f x = raise# (toException x)

main = print (I# (f Overflow))