summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/c/single_arg.expect1
-rw-r--r--test/c/single_arg.sail15
2 files changed, 16 insertions, 0 deletions
diff --git a/test/c/single_arg.expect b/test/c/single_arg.expect
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/test/c/single_arg.expect
@@ -0,0 +1 @@
+5
diff --git a/test/c/single_arg.sail b/test/c/single_arg.sail
new file mode 100644
index 00000000..6b746d11
--- /dev/null
+++ b/test/c/single_arg.sail
@@ -0,0 +1,15 @@
+default Order dec
+
+$include <prelude.sail>
+
+val f : (int, int) -> int
+
+function f(x) = {
+ match x {
+ (y, z) => y + z
+ }
+}
+
+function main() : unit -> unit = {
+ print_int("", f(2, 3));
+} \ No newline at end of file