summaryrefslogtreecommitdiff
path: root/tests/hog.ur
diff options
context:
space:
mode:
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>