summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-names_precompute.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-names_precompute.wast')
-rw-r--r--test/passes/remove-unused-names_precompute.wast28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/passes/remove-unused-names_precompute.wast b/test/passes/remove-unused-names_precompute.wast
new file mode 100644
index 000000000..5e1853389
--- /dev/null
+++ b/test/passes/remove-unused-names_precompute.wast
@@ -0,0 +1,28 @@
+(module
+ (memory $0 256 256)
+ (func $__ZN10WasmAssertC2Ev__async_cb (param $$0 i32)
+ (block $switch-default
+ (block $switch-case
+ (br_table $switch-case $switch-default
+ (i32.const 0)
+ )
+ )
+ (block
+ (i32.store
+ (i32.const 12)
+ (i32.const 26)
+ )
+ (return)
+ )
+ )
+ (block
+ (set_local $$0
+ (i32.const 4)
+ )
+ (i32.store
+ (get_local $$0)
+ (i32.const 1)
+ )
+ )
+ )
+)