summaryrefslogtreecommitdiff
path: root/test/fncast.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/fncast.myr')
-rw-r--r--test/fncast.myr16
1 files changed, 16 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)
+}
+