diff options
Diffstat (limited to 'test/merge/fusing.wast.combined.opt')
-rw-r--r-- | test/merge/fusing.wast.combined.opt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/merge/fusing.wast.combined.opt b/test/merge/fusing.wast.combined.opt new file mode 100644 index 000000000..1a09fb784 --- /dev/null +++ b/test/merge/fusing.wast.combined.opt @@ -0,0 +1,35 @@ +(module + (type $FUNCSIG$v (func)) + (type $FUNCSIG$v$0 (func)) + (import "env" "memoryBase" (global $memoryBase i32)) + (import "env" "tableBase" (global $tableBase i32)) + (import "env" "memory" (memory $0 256)) + (import "env" "table" (table 0 anyfunc)) + (global $a-global i32 (i32.const 0)) + (global $b-global f64 (f64.const 2.14281428)) + + (data (get_global $memoryBase) "") + (export "foo" (func $foo-func)) + (export "aglobal" (global $a-global)) + (export "bar" (func $bar-func)) + (export "bglobal" (global $b-global)) + (func $foo-func (type $FUNCSIG$v) + (nop) + (call $bar-func) + (drop + (get_global $a-global) + ) + (drop + (get_global $b-global) + ) + ) + (func $bar-func (type $FUNCSIG$v$0) + (nop) + (drop + (get_global $a-global) + ) + (drop + (get_global $b-global) + ) + ) +) |