summaryrefslogtreecommitdiff
path: root/test/passes/emit-js-wrapper=a.js.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/emit-js-wrapper=a.js.txt')
-rw-r--r--test/passes/emit-js-wrapper=a.js.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/passes/emit-js-wrapper=a.js.txt b/test/passes/emit-js-wrapper=a.js.txt
new file mode 100644
index 000000000..0432ccdc7
--- /dev/null
+++ b/test/passes/emit-js-wrapper=a.js.txt
@@ -0,0 +1,42 @@
+(module
+ (type $0 (func (param i32 i32) (result i32)))
+ (type $1 (func (param i32)))
+ (type $2 (func (param i32 i64 f32 f64)))
+ (type $3 (func (param i32 f32 f64)))
+ (type $4 (func (param i32 f32 f64) (result i64)))
+ (memory $0 256 256)
+ (export "add" (func $add))
+ (export "no_return" (func $no-return))
+ (export "types" (func $types))
+ (export "types2" (func $types2))
+ (export "types3" (func $types3))
+ (func $add (type $0) (param $x i32) (param $y i32) (result i32)
+ (i32.add
+ (get_local $x)
+ (get_local $y)
+ )
+ )
+ (func $unexported (type $0) (param $x i32) (param $y i32) (result i32)
+ (i32.add
+ (get_local $x)
+ (get_local $y)
+ )
+ )
+ (func $no-return (type $1) (param $x i32)
+ (drop
+ (i32.add
+ (get_local $x)
+ (get_local $x)
+ )
+ )
+ )
+ (func $types (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64)
+ (nop)
+ )
+ (func $types2 (type $3) (param $x i32) (param $z f32) (param $w f64)
+ (nop)
+ )
+ (func $types3 (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64)
+ (i64.const 1)
+ )
+)