summaryrefslogtreecommitdiff
path: root/test/passes/emit-js-wrapper=a.js.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/emit-js-wrapper=a.js.wast')
-rw-r--r--test/passes/emit-js-wrapper=a.js.wast37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/passes/emit-js-wrapper=a.js.wast b/test/passes/emit-js-wrapper=a.js.wast
new file mode 100644
index 000000000..4ea764b61
--- /dev/null
+++ b/test/passes/emit-js-wrapper=a.js.wast
@@ -0,0 +1,37 @@
+(module
+ (memory $0 256 256)
+ (export "add" (func $add))
+ (export "no_return" (func $no-return)) ;; note exported name is slightly different
+ (export "types" (func $types))
+ (export "types2" (func $types2))
+ (export "types3" (func $types3))
+ (func $add (param $x i32) (param $y i32) (result i32)
+ (i32.add
+ (get_local $x)
+ (get_local $y)
+ )
+ )
+ (func $unexported (param $x i32) (param $y i32) (result i32)
+ (i32.add
+ (get_local $x)
+ (get_local $y)
+ )
+ )
+ (func $no-return (param $x i32)
+ (drop
+ (i32.add
+ (get_local $x)
+ (get_local $x)
+ )
+ )
+ )
+ (func $types (param $x i32) (param $y i64) (param $z f32) (param $w f64)
+ (nop)
+ )
+ (func $types2 (param $x i32) (param $z f32) (param $w f64)
+ (nop)
+ )
+ (func $types3 (param $x i32) (param $z f32) (param $w f64) (result i64)
+ (i64.const 1)
+ )
+)