summaryrefslogtreecommitdiff
path: root/test/c/single_arg.sail
diff options
context:
space:
mode:
Diffstat (limited to 'test/c/single_arg.sail')
-rw-r--r--test/c/single_arg.sail15
1 files changed, 15 insertions, 0 deletions
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