summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-05-04 15:54:23 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-05-04 15:54:23 -0700
commit34b86f22fddce09c6d45d4ba743cc9d1f4eceff9 (patch)
tree4f345edf6b34d86b9d3a8d5cb136b2c3d18700fb /tests
parentImplement recursive functions. (diff)
downloadsml-34b86f22fddce09c6d45d4ba743cc9d1f4eceff9.tar.zst
Add "fun" syntax.
Diffstat (limited to 'tests')
-rw-r--r--tests/14-fun.sml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/14-fun.sml b/tests/14-fun.sml
new file mode 100644
index 0000000..210b30d
--- /dev/null
+++ b/tests/14-fun.sml
@@ -0,0 +1,3 @@
+fun f x y = __builtin "exit" (__builtin "sub" (x, y))
+
+val _ = f 60 18