1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

wasm module: globals, constant expressions and function reference types (#17950)

This commit is contained in:
l-m
2023-04-14 03:39:55 +10:00
committed by GitHub
parent 093e5c68b9
commit 8b2887d80b
8 changed files with 455 additions and 67 deletions

View File

@@ -22,7 +22,7 @@ fn validate(mod []u8) ! {
proc.close()
}
fn test_add() {
fn test_block() {
mut m := wasm.Module{}
mut a1 := m.new_function('param', [], [.i32_t])
{