aboutsummaryrefslogtreecommitdiff
path: root/tests/callbacks
diff options
context:
space:
mode:
Diffstat (limited to 'tests/callbacks')
-rw-r--r--tests/callbacks/callbacks.ek16
-rw-r--r--tests/callbacks/source.mk1
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/callbacks/callbacks.ek b/tests/callbacks/callbacks.ek
new file mode 100644
index 0000000..927c122
--- /dev/null
+++ b/tests/callbacks/callbacks.ek
@@ -0,0 +1,16 @@
+typedef i27 {}
+
+do_stuff(^(i27 => i27) proc => i27)
+{
+ return proc(20);
+}
+
+other_proc(i27 a => i27)
+{
+ return a + 10;
+}
+
+main()
+{
+ do_stuff(other_proc);
+}
diff --git a/tests/callbacks/source.mk b/tests/callbacks/source.mk
new file mode 100644
index 0000000..75a9fa8
--- /dev/null
+++ b/tests/callbacks/source.mk
@@ -0,0 +1 @@
+SIMPLE += callbacks