summaryrefslogtreecommitdiffstats
path: root/tests/160-datatype.sml
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-11-04 18:58:28 -0800
committerRose Hogenson <rosehogenson@posteo.net>2025-11-04 21:05:18 -0800
commiteaa183b7dfc841df75d42ace7a90ada1e40ff282 (patch)
tree1d627b8088d5996a7bbf7c0a7439360e31de3dc3 /tests/160-datatype.sml
parentCombine structs and expressions (diff)
downloadsml-eaa183b7dfc841df75d42ace7a90ada1e40ff282.tar.zst
Add listsHEADmain
Diffstat (limited to 'tests/160-datatype.sml')
-rw-r--r--tests/160-datatype.sml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/160-datatype.sml b/tests/160-datatype.sml
new file mode 100644
index 0000000..7514606
--- /dev/null
+++ b/tests/160-datatype.sml
@@ -0,0 +1,5 @@
+datatype D = D of int
+
+fun f (D x) = __builtin "exit" x
+
+val _ = f (D 42)