summaryrefslogtreecommitdiff
path: root/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast')
-rw-r--r--test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast
new file mode 100644
index 000000000..33500baba
--- /dev/null
+++ b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast
@@ -0,0 +1,26 @@
+(module
+ (memory 1 2)
+ (type $f (func))
+ (import "env" "import" (func $import))
+ (import "env" "import2" (func $import2 (result i32)))
+ (import "env" "import3" (func $import3 (param i32)))
+ (table 1 1)
+ (func $calls-import
+ (call $import)
+ )
+ (func $calls-import2-drop
+ (drop (call $import2))
+ )
+ (func $calls-import2-if-else (param $x i32)
+ (if (local.get $x)
+ (call $import3 (i32.const 1))
+ (call $import3 (i32.const 2))
+ )
+ )
+ (func $calls-indirect (param $x i32)
+ (call_indirect (type $f)
+ (local.get $x)
+ )
+ )
+)
+