diff options
Diffstat (limited to 'test/passes/extract-function_pass-arg=extract@foo.txt')
-rw-r--r-- | test/passes/extract-function_pass-arg=extract@foo.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/passes/extract-function_pass-arg=extract@foo.txt b/test/passes/extract-function_pass-arg=extract@foo.txt index 6726bb3a4..3caf274c3 100644 --- a/test/passes/extract-function_pass-arg=extract@foo.txt +++ b/test/passes/extract-function_pass-arg=extract@foo.txt @@ -1,9 +1,28 @@ (module (type $none_=>_none (func)) (import "env" "bar" (func $bar)) - (import "env" "other" (func $other)) (export "foo" (func $foo)) (func $foo (call $bar) ) ) +(module + (type $none_=>_none (func)) + (import "env" "other" (func $other)) + (export "foo" (func $foo)) + (func $foo + (nop) + ) +) +(module + (type $none (func)) + (import "env" "other" (func $other)) + (table $t 10 funcref) + (elem $0 (i32.const 0) $other) + (export "foo" (func $foo)) + (func $foo + (call_indirect (type $none) + (i32.const 10) + ) + ) +) |