summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/integer/gcdInteger.hs
blob: e25855c149f5d557df739cad88f1a856a199d627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

{-# LANGUAGE MagicHash #-}

module Main (main) where

import GHC.Base
import GHC.Num.Integer

main :: IO ()
main = case i of
       I# i# ->
           print (gcd (IS i#) (IS i#))

{-# NOINLINE i #-}
i :: Int
i = minBound