summaryrefslogtreecommitdiff
path: root/tests/overflow.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-08-02 14:31:37 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-08-02 14:31:37 -0400
commit18c72ec4eb9f53935a1a1d7145b919f8a8c8684e (patch)
tree8916c74bf31d44a9de1144f76b6a44a313520c21 /tests/overflow.ur
parent949fe8f9ce90257cd354c2d19d611cbcc3b569ef (diff)
Introduce URWEB_STACK_SIZE environment variable (based on a patch by Hao Deng)
Diffstat (limited to 'tests/overflow.ur')
-rw-r--r--tests/overflow.ur8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/overflow.ur b/tests/overflow.ur
new file mode 100644
index 00000000..09edc5a3
--- /dev/null
+++ b/tests/overflow.ur
@@ -0,0 +1,8 @@
+fun makeList n = if n = 0 then [] else 1 :: makeList (n - 1)
+
+fun doit {N = n} = return <xml><body>{[List.length (makeList (readError n))]}</body></xml>
+
+fun main () =
+ return <xml><body>
+ <form> <textbox{#N}/> <submit action={doit}/> </form>
+ </body></xml>