diff options
Diffstat (limited to 'test/passes/extract-function_pass-arg=extract-function@foo.txt')
-rw-r--r-- | test/passes/extract-function_pass-arg=extract-function@foo.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/passes/extract-function_pass-arg=extract-function@foo.txt b/test/passes/extract-function_pass-arg=extract-function@foo.txt new file mode 100644 index 000000000..3caf274c3 --- /dev/null +++ b/test/passes/extract-function_pass-arg=extract-function@foo.txt @@ -0,0 +1,28 @@ +(module + (type $none_=>_none (func)) + (import "env" "bar" (func $bar)) + (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) + ) + ) +) |