summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test3.sail6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test3.sail b/src/test/test3.sail
index 3127db28..8d0d9056 100644
--- a/src/test/test3.sail
+++ b/src/test/test3.sail
@@ -7,8 +7,8 @@ val ( nat -> nat effect { wmem , rmem } ) MEM_GPU
val ( ( nat * nat ) -> nat effect { wmem , rmem } ) MEM_SIZE
(* extern functions *)
-val extern ( nat -> nat pure ) add = "add"
-val extern ( nat -> nat pure ) (: + ) = "add_infix" (* infix plus *)
+val extern ( ( nat * nat ) -> nat pure ) add = "add"
+val extern ( ( nat * nat ) -> nat pure ) (: + ) = "add_infix" (* infix plus *)
function nat (: * ) ( < nat > x, < nat > y ) = 42
@@ -36,5 +36,5 @@ function nat main _ = {
(* extern calls *)
3 + 39;
- add(5);
+ add((5, 37));
}