blob: 28796bf32671eeea0f3392be4260a7518f638bcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
;;; TOOL: run-gen-spec-js
;;; ARGS: --prefix=%(test_dir)s/gen-spec-empty-prefix.js
(module
(func (export "42") (result i32) i32.const 42))
(assert_return (invoke "42") (i32.const 42))
(;; STDOUT ;;;
// A deliberately empty file for testing.
// basic.txt:3
let $1 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x06\x01\x02\x34\x32\x00\x00\x0a\x06\x01\x04\x00\x41\x2a\x0b");
// basic.txt:6
assert_return(() => call($1, "42", []), 42);
;;; STDOUT ;;)
|