diff options
Diffstat (limited to 'test/passes/remove-unused-functions.wast')
-rw-r--r-- | test/passes/remove-unused-functions.wast | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/test/passes/remove-unused-functions.wast b/test/passes/remove-unused-functions.wast index 4c89804bf..9449a25cb 100644 --- a/test/passes/remove-unused-functions.wast +++ b/test/passes/remove-unused-functions.wast @@ -1,46 +1,47 @@ (module + (memory 0) (start $start) + (type $0 (func)) (export "exported" $exported) (table $called_indirect) - (func $start + (func $start (type $0) (call $called0) ) - (func $called0 + (func $called0 (type $0) (call $called1) ) - (func $called1 + (func $called1 (type $0) (nop) ) - (func $called_indirect + (func $called_indirect (type $0) (nop) ) - (func $exported + (func $exported (type $0) (call $called2) ) - (func $called2 + (func $called2 (type $0) (call $called2) (call $called3) ) - (func $called3 + (func $called3 (type $0) (call $called4) ) - (func $called4 + (func $called4 (type $0) (call $called3) ) - (func $remove0 + (func $remove0 (type $0) (call $remove1) ) - (func $remove1 + (func $remove1 (type $0) (nop) ) - (func $remove2 + (func $remove2 (type $0) (call $remove2) ) - (func $remove3 + (func $remove3 (type $0) (call $remove4) ) - (func $remove4 + (func $remove4 (type $0) (call $remove3) ) ) - |