summaryrefslogtreecommitdiff
path: root/test/binaryen.js/call_import_error.js.txt
blob: 498f603e14e9f2358d2fbd332fd8ff5bcf3ff1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(module
 (type $v (func))
 (import "env" "fn" (func $fn))
 (memory $0 0)
 (export "main" (func $main))
 (func $main (; 1 ;) (type $v)
  (call $fn)
 )
)

[wasm-validator error in function $main] unexpected false: call target must exist, on 
[none] (call $fn)
(perhaps it should be a CallImport instead of Call?)
(module
 (type $v (func))
 (import "env" "fn" (func $fn))
 (memory $0 0)
 (export "main" (func $main))
 (func $main (; 1 ;) (type $v)
  (call $fn)
 )
)