diff options
Diffstat (limited to 'test/passes/asyncify_pass-arg=asyncify-imports@env.import,env.import2.txt')
-rw-r--r-- | test/passes/asyncify_pass-arg=asyncify-imports@env.import,env.import2.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/passes/asyncify_pass-arg=asyncify-imports@env.import,env.import2.txt b/test/passes/asyncify_pass-arg=asyncify-imports@env.import,env.import2.txt index a6a0a8b1d..69a555cf8 100644 --- a/test/passes/asyncify_pass-arg=asyncify-imports@env.import,env.import2.txt +++ b/test/passes/asyncify_pass-arg=asyncify-imports@env.import,env.import2.txt @@ -1,6 +1,7 @@ (module (type $none_=>_none (func)) (type $i32_=>_none (func (param i32))) + (type $none_=>_i32 (func (result i32))) (memory $0 1 2) (global $sleeping (mut i32) (i32.const 0)) (global $__asyncify_state (mut i32) (i32.const 0)) @@ -9,6 +10,7 @@ (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) (export "asyncify_start_rewind" (func $asyncify_start_rewind)) (export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) + (export "asyncify_get_state" (func $asyncify_get_state)) (func $do_sleep (; 0 ;) (local $0 i32) (local $1 i32) @@ -312,12 +314,15 @@ (unreachable) ) ) + (func $asyncify_get_state (; 10 ;) (result i32) + (global.get $__asyncify_state) + ) ) (module (type $none_=>_none (func)) (type $i32_=>_none (func (param i32))) - (type $i32_=>_i32 (func (param i32) (result i32))) (type $none_=>_i32 (func (result i32))) + (type $i32_=>_i32 (func (param i32) (result i32))) (import "env" "import" (func $import)) (import "env" "import2" (func $import2 (result i32))) (import "env" "import3" (func $import3 (param i32))) @@ -328,6 +333,7 @@ (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) (export "asyncify_start_rewind" (func $asyncify_start_rewind)) (export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) + (export "asyncify_get_state" (func $asyncify_get_state)) (func $calls-import (; 3 ;) (local $0 i32) (local $1 i32) @@ -1855,4 +1861,7 @@ (unreachable) ) ) + (func $asyncify_get_state (; 23 ;) (result i32) + (global.get $__asyncify_state) + ) ) |