diff options
| author | 2022-08-05 20:01:39 +0200 | |
|---|---|---|
| committer | 2022-08-05 20:01:39 +0200 | |
| commit | 4ebbafbb19455d71cd185504cdef992e1a91db7e (patch) | |
| tree | b02de90b14492acfcd00ae5248c4f1199ae81912 /bootstrap/test.cff | |
| parent | a2e4d0a565a8e756f36177003a51e224aca238b9 (diff) | |
call functin pointers directly
Diffstat (limited to 'bootstrap/test.cff')
| -rw-r--r-- | bootstrap/test.cff | 4 |
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 { |