summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_run/T12595.hs
blob: 86e0419f65879382cc7d94b2296875ff0cc22f45 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE BangPatterns #-}
module Main where

import GHC.Base

-- In Trac #12595 a bogus desugaring led (bizarrely)
-- to a top-level binding maxInt = maxInt
-- This test just checks that doesn't happen again

main = print (let !x = maxInt in even x)