Ticket #725: optc-O2-bug.hs

File optc-O2-bug.hs, 281 bytes (added by guest, 6 years ago)
Line 
1{-# OPTIONS_GHC -cpp -fglasgow-exts #-}
2module Unboxed where
3
4import GHC.IOBase       ( IO(..) )
5import GHC.Base
6import GHC.Float        ( Double(..) )
7
8readVarDouble arr =  IO ( \s ->
9    case readDoubleArray# arr 0# s of { (# s, value# #) ->
10    (# s, D# value# #) } )