Skip to content
Snippets Groups Projects
Commit b56b4d8c authored by Ben Gamari's avatar Ben Gamari
Browse files

testsuite: Add testcase for #16111

(cherry picked from commit 3acdc9a8)
parent 17b084af
No related branches found
No related tags found
No related merge requests found
module Main (main) where
import Data.Bits
import Data.Word
main :: IO ()
main = print $ toInteger (shiftL 1 hm :: Word64)
== toInteger (shiftL 1 hm :: Word64)
hm :: Int
hm = -1
{-# NOINLINE hm #-}
T16111: arithmetic overflow
......@@ -233,3 +233,4 @@ test('T10412', normal, compile_and_run, [''])
test('T13896', normal, compile_and_run, [''])
test('T13167', fragile_for(16536, ['threaded2']), compile_and_run, [''])
test('T15349', [exit_code(1), expect_broken_for(15349, 'ghci')], compile_and_run, [''])
test('T16111', exit_code(1), compile_and_run, [''])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment