summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fncast.myr16
-rw-r--r--test/tests1
2 files changed, 17 insertions, 0 deletions
diff --git a/test/fncast.myr b/test/fncast.myr
new file mode 100644
index 0000000..08b8d1e
--- /dev/null
+++ b/test/fncast.myr
@@ -0,0 +1,16 @@
+use std
+
+const main = {
+ var fn, envfn
+ var ptr
+
+ fn = {
+ }
+ envfn = {
+ ptr = ptr
+ }
+ ptr = fn castto(byte#)
+ ptr = envfn castto(byte#)
+ std.put("ok\n", ptr)
+}
+
diff --git a/test/tests b/test/tests
index e24a6c5..9fb9246 100644
--- a/test/tests
+++ b/test/tests
@@ -59,6 +59,7 @@ B callbig E 42
B nestfn E 42
B foldidx P 123,456
B closure P 111555333666
+B fncast P ok
B loop P 0123401236789
B subrangefor P 12
B patiter P 23512