aboutsummaryrefslogtreecommitdiff
path: root/tests/call
diff options
context:
space:
mode:
Diffstat (limited to 'tests/call')
-rw-r--r--tests/call/call.ek11
-rw-r--r--tests/call/source.mk1
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/call/call.ek b/tests/call/call.ek
new file mode 100644
index 0000000..86d6ed0
--- /dev/null
+++ b/tests/call/call.ek
@@ -0,0 +1,11 @@
+typedef i27 {}
+
+add(i27 a, i27 b => i27)
+{
+ return a + b;
+}
+
+main()
+{
+ add(20 as i27, 40 as i27);
+}
diff --git a/tests/call/source.mk b/tests/call/source.mk
new file mode 100644
index 0000000..3e9da8c
--- /dev/null
+++ b/tests/call/source.mk
@@ -0,0 +1 @@
+SIMPLE += call