summaryrefslogtreecommitdiff
path: root/testsuite/tests/numeric/should_run/1603.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/numeric/should_run/1603.hs')
-rw-r--r--testsuite/tests/numeric/should_run/1603.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_run/1603.hs b/testsuite/tests/numeric/should_run/1603.hs
new file mode 100644
index 0000000000..09dd05a550
--- /dev/null
+++ b/testsuite/tests/numeric/should_run/1603.hs
@@ -0,0 +1,7 @@
+module Main where
+
+main = print (syn [-1])
+
+syn :: [Int] -> [Int]
+syn (d:ds) = rem d 0x40000000 : syn ds
+syn [] = []