diff options
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/T3055.hs')
-rw-r--r-- | testsuite/tests/simplCore/should_compile/T3055.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T3055.hs b/testsuite/tests/simplCore/should_compile/T3055.hs new file mode 100644 index 0000000000..50853874db --- /dev/null +++ b/testsuite/tests/simplCore/should_compile/T3055.hs @@ -0,0 +1,9 @@ + +module Foo where + +import Data.Bits + +-- This should be simplified away to -28 +int :: Int +int = negate ((((((15 + 18 - 11) * 3) `quot` 2) `rem` 19) `shiftL` 3) `shiftR` 2) + |