summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-07-04 11:19:55 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-07-04 11:19:55 -0700
commited48b02873f3ea3cab0107176d00eb00c9519766 (patch)
treeb8520790160c42466b5bef7644365259c6076bc4 /tests
parent73d1d16befe44d7d73db40b47aef0fd61285501d (diff)
downloadsml-ed48b02873f3ea3cab0107176d00eb00c9519766.tar.zst
Add signatures
Diffstat (limited to 'tests')
-rw-r--r--tests/23-signature.sml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/23-signature.sml b/tests/23-signature.sml
new file mode 100644
index 0000000..01a8494
--- /dev/null
+++ b/tests/23-signature.sml
@@ -0,0 +1,10 @@
+signature SIG = sig
+ val x : int
+end
+
+structure Struct :> SIG = struct
+ val privateField = 41
+ val x = 42
+end
+
+val _ = __builtin "exit" Struct.x