aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-07 10:15:16 +0200
committerEugen Wissner <belka@caraus.de>2026-10-07 10:15:16 +0200
commitf547dae96d770cc7bc27d3790d0d87bb8e37963d (patch)
tree052abb2d81cabc5a3c5bde7d623ef2af9dcd45e9 /testsuite/runnable
parentf9dfefc52fc792099b622ae47dafa32d2512e51e (diff)
downloadelna-f547dae96d770cc7bc27d3790d0d87bb8e37963d.tar.gz
Make procedure pointers compatible with normal pointers
Diffstat (limited to 'testsuite/runnable')
-rw-r--r--testsuite/runnable/procedure_cast.elna6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/runnable/procedure_cast.elna b/testsuite/runnable/procedure_cast.elna
index 191afbf..d724e38 100644
--- a/testsuite/runnable/procedure_cast.elna
+++ b/testsuite/runnable/procedure_cast.elna
@@ -1,11 +1,11 @@
program()
var
- cb: proc(x: ^Char) -> Int
+ cb: ^proc(x: ^Char) -> Int
proc probe_int(x: ^Int) -> Int
return 42
begin
- cb := cast(probe_int: proc(x: ^Char) -> Int);
- assert(cb(nil) = 42)
+ cb := cast(@probe_int: ^proc(x: ^Char) -> Int);
+ assert(cb^(nil) = 42)
end.