summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/eyeball/record1.hs
blob: 1f9084b7a6feadf9dcbc3176b0c496628744957f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Check that the record selector for maskMB unfolds in the body of f
-- At one stage it didn't because the implicit unfolding looked too big

-- Trac #2581

module ShouldCompile where
import Data.Array.Base

data MBloom s a = MB {
     shiftMB :: {-# UNPACK #-} !Int
    , maskMB :: {-# UNPACK #-} !Int
    , bitArrayMB :: {-# UNPACK #-} !(STUArray s Int Int)
    }

f a b c = case maskMB (MB a b c) of 
	    3 -> True
	    _ -> False