aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-05 20:01:39 +0200
committerlemon <lsof@mailbox.org>2022-08-05 20:01:39 +0200
commit4ebbafbb19455d71cd185504cdef992e1a91db7e (patch)
treeb02de90b14492acfcd00ae5248c4f1199ae81912 /bootstrap/test.cff
parenta2e4d0a565a8e756f36177003a51e224aca238b9 (diff)
call functin pointers directly
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff4
1 files changed, 4 insertions, 0 deletions
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 {