summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-nonfunction-module-elements.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-nonfunction-module-elements.txt')
-rw-r--r--test/passes/remove-unused-nonfunction-module-elements.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/passes/remove-unused-nonfunction-module-elements.txt b/test/passes/remove-unused-nonfunction-module-elements.txt
index bd4a8c7d4..2eb4aebba 100644
--- a/test/passes/remove-unused-nonfunction-module-elements.txt
+++ b/test/passes/remove-unused-nonfunction-module-elements.txt
@@ -2,9 +2,9 @@
(type $0 (func))
(type $1 (func (param i32)))
(type $2 (func (param i32) (result i32)))
+ (memory $0 0)
(table 1 1 anyfunc)
(elem (i32.const 0) $called_indirect)
- (memory $0 0)
(export "memory" (memory $0))
(export "exported" (func $exported))
(export "other1" (func $other1))
@@ -107,9 +107,9 @@
(module
(type $0 (func))
(import "env" "memory" (memory $0 256))
+ (data (i32.const 1) "hello, world!")
(import "env" "table" (table 1 anyfunc))
(elem (i32.const 0) $waka)
- (data (i32.const 1) "hello, world!")
(func $waka (; 0 ;) (type $0)
(nop)
)
@@ -222,11 +222,11 @@
(module
(type $0 (func))
(import "env" "memory" (memory $0 256))
+ (data (get_global $memoryBase) "hello, world!")
(import "env" "table" (table 0 anyfunc))
+ (elem (get_global $tableBase) $waka)
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
- (elem (get_global $tableBase) $waka)
- (data (get_global $memoryBase) "hello, world!")
(func $waka (; 0 ;) (type $0)
(nop)
)