summaryrefslogtreecommitdiff
path: root/test/binaryen.js/call_import_error.js.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/call_import_error.js.txt')
-rw-r--r--test/binaryen.js/call_import_error.js.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/binaryen.js/call_import_error.js.txt b/test/binaryen.js/call_import_error.js.txt
new file mode 100644
index 000000000..61e3f9339
--- /dev/null
+++ b/test/binaryen.js/call_import_error.js.txt
@@ -0,0 +1,22 @@
+(module
+ (type $v (func))
+ (import "env" "fn" (func $fn))
+ (memory $0 0)
+ (export "main" (func $main))
+ (func $main (type $v)
+ (call $fn)
+ )
+)
+
+[wasm-validator error in function $main] unexpected false: call target must exist, on
+(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 (type $v)
+ (call $fn)
+ )
+)