summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/cgrun016.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/codeGen/should_run/cgrun016.hs')
-rw-r--r--testsuite/tests/codeGen/should_run/cgrun016.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_run/cgrun016.hs b/testsuite/tests/codeGen/should_run/cgrun016.hs
new file mode 100644
index 0000000000..ba5dd04fea
--- /dev/null
+++ b/testsuite/tests/codeGen/should_run/cgrun016.hs
@@ -0,0 +1,9 @@
+-- !!! tests calls of `error' (that make calls of `error'...)
+--
+main = error ("1st call to error\n"++(
+ error ("2nd call to error\n"++(
+ error ("3rd call to error\n"++(
+ error ("4th call to error\n"++(
+ error ("5th call to error\n"++(
+ error ("6th call to error"
+ )))))))))))