diff options
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/T4930.hs')
-rw-r--r-- | testsuite/tests/simplCore/should_compile/T4930.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T4930.hs b/testsuite/tests/simplCore/should_compile/T4930.hs new file mode 100644 index 0000000000..ae5d4fd5f7 --- /dev/null +++ b/testsuite/tests/simplCore/should_compile/T4930.hs @@ -0,0 +1,5 @@ +module T4930 where + +foo :: Int -> Int +foo n = (if n < 5 then error "Too small" else n+2) + `seq` n+5 |