zig/test/link/wasm/function-table/lib.zig
Luuk de Gram 3e32a18956
test/link: add test case for function table
Adds 3 linker tests to verify the indirect function table
functionality for importing, exporting and its regular definitions.
2023-01-02 18:36:18 +01:00

7 lines
92 B
Zig

var func: *const fn () void = &bar;
export fn foo() void {
func();
}
fn bar() void {}