summaryrefslogtreecommitdiff
path: root/test/metadce
diff options
context:
space:
mode:
Diffstat (limited to 'test/metadce')
-rw-r--r--test/metadce/corners.wast.dced2
-rw-r--r--test/metadce/outside.wast.dced4
-rw-r--r--test/metadce/rooted-export.wast.dced2
-rw-r--r--test/metadce/spanning_cycle.wast.dced2
-rw-r--r--test/metadce/threaded.wast.dced8
-rw-r--r--test/metadce/threaded_cycle.wast.dced8
6 files changed, 13 insertions, 13 deletions
diff --git a/test/metadce/corners.wast.dced b/test/metadce/corners.wast.dced
index 11f37f398..2d66127e6 100644
--- a/test/metadce/corners.wast.dced
+++ b/test/metadce/corners.wast.dced
@@ -7,7 +7,7 @@
(import "env" "an-imported-table-func" (func $imported_table_func))
(global $STACKTOP (mut i32) (global.get $STACKTOP$asm2wasm$import))
(export "stackAlloc" (func $stackAlloc))
- (func $stackAlloc (; 2 ;)
+ (func $stackAlloc
(drop
(global.get $STACKTOP)
)
diff --git a/test/metadce/outside.wast.dced b/test/metadce/outside.wast.dced
index 3768e02eb..006e14497 100644
--- a/test/metadce/outside.wast.dced
+++ b/test/metadce/outside.wast.dced
@@ -11,10 +11,10 @@
(global $from_segment (mut i32) (i32.const 0))
(global $from_segment_2 (mut i32) (i32.const 0))
(export "wasm_func" (func $a_wasm_func))
- (func $table_func (; 1 ;)
+ (func $table_func
(nop)
)
- (func $a_wasm_func (; 2 ;)
+ (func $a_wasm_func
(call $a_js_func)
(drop
(global.get $DYNAMICTOP_PTR$asm2wasm$import)
diff --git a/test/metadce/rooted-export.wast.dced b/test/metadce/rooted-export.wast.dced
index 7be29e0d2..866872a5d 100644
--- a/test/metadce/rooted-export.wast.dced
+++ b/test/metadce/rooted-export.wast.dced
@@ -4,7 +4,7 @@
(event $b_wasm_event (attr 0) (param i32))
(export "wasm_func_b" (func $b_wasm_func))
(export "wasm_event_b" (event $b_wasm_event))
- (func $b_wasm_func (; 0 ;)
+ (func $b_wasm_func
(unreachable)
)
)
diff --git a/test/metadce/spanning_cycle.wast.dced b/test/metadce/spanning_cycle.wast.dced
index 807f10dd0..7b74682bd 100644
--- a/test/metadce/spanning_cycle.wast.dced
+++ b/test/metadce/spanning_cycle.wast.dced
@@ -4,7 +4,7 @@
(memory $0 1 1)
(data passive "Hello, datacount section!")
(export "wasm_func_a" (func $a_wasm_func))
- (func $a_wasm_func (; 1 ;)
+ (func $a_wasm_func
(memory.init 0
(i32.const 0)
(i32.const 0)
diff --git a/test/metadce/threaded.wast.dced b/test/metadce/threaded.wast.dced
index 6513743e7..8b04aee92 100644
--- a/test/metadce/threaded.wast.dced
+++ b/test/metadce/threaded.wast.dced
@@ -7,16 +7,16 @@
(export "wasm_func2" (func $wasm_func_2))
(export "wasm_func3" (func $wasm_func_3))
(export "wasm_func4" (func $wasm_func_4))
- (func $wasm_func_4 (; 3 ;)
+ (func $wasm_func_4
(nop)
)
- (func $wasm_func_3 (; 4 ;)
+ (func $wasm_func_3
(call $js_func_4)
)
- (func $wasm_func_2 (; 5 ;)
+ (func $wasm_func_2
(call $js_func_3)
)
- (func $wasm_func_1 (; 6 ;)
+ (func $wasm_func_1
(call $js_func_2)
)
)
diff --git a/test/metadce/threaded_cycle.wast.dced b/test/metadce/threaded_cycle.wast.dced
index 6c568a426..936446ddf 100644
--- a/test/metadce/threaded_cycle.wast.dced
+++ b/test/metadce/threaded_cycle.wast.dced
@@ -8,16 +8,16 @@
(export "wasm_func2" (func $wasm_func_2))
(export "wasm_func3" (func $wasm_func_3))
(export "wasm_func4" (func $wasm_func_4))
- (func $wasm_func_4 (; 4 ;)
+ (func $wasm_func_4
(call $js_func_1)
)
- (func $wasm_func_3 (; 5 ;)
+ (func $wasm_func_3
(call $js_func_4)
)
- (func $wasm_func_2 (; 6 ;)
+ (func $wasm_func_2
(call $js_func_3)
)
- (func $wasm_func_1 (; 7 ;)
+ (func $wasm_func_1
(call $js_func_2)
)
)