From 4ebbafbb19455d71cd185504cdef992e1a91db7e Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 5 Aug 2022 20:01:39 +0200 Subject: call functin pointers directly --- bootstrap/test.cff | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index d7f86bf..fb1741d 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -27,6 +27,10 @@ fn isort(xs *int, n usize) void { return lhs - rhs; } qsort(xs, n, 4, &icmp); + + fn foo() void {} + let x= &foo; + x(); } extern fn main (argc int, argv **u8) int { -- cgit v1.2.3