summaryrefslogtreecommitdiff
path: root/test/passes/extract-function_pass-arg=extract-function@foo.txt
blob: 3caf274c3b3350bd06ab73b8b1a3cdafab5aece5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
  )
 )
)