summaryrefslogtreecommitdiff
path: root/tests/hog.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2010-10-14 11:06:26 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2010-10-14 11:06:26 -0400
commit7bf0a0124a6c8a834983a660af53d8789ac0a8ac (patch)
tree628ead017a0f1cf2138f9f9b08088debf81e1ce5 /tests/hog.ur
parent4e608544ebe87dd991d53ded5267f14f5df93b8b (diff)
Interface for setting memory limits
Diffstat (limited to 'tests/hog.ur')
-rw-r--r--tests/hog.ur7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/hog.ur b/tests/hog.ur
new file mode 100644
index 00000000..419d202d
--- /dev/null
+++ b/tests/hog.ur
@@ -0,0 +1,7 @@
+fun more n =
+ if n <= 0 then
+ "!"
+ else
+ more (n-1) ^ more (n-1)
+
+fun main n = return <xml>{[more n]}</xml>