summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-functions.wast
blob: 19b72f2ac5d23d0ffda0d90e71d942bbb58d83ca (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(module
  (memory 0)
  (start $start)
  (type $0 (func))
  (export "exported" $exported)
  (table 1 1 anyfunc)
  (elem (i32.const 0) $called_indirect)
  (func $start (type $0)
    (call $called0)
  )
  (func $called0 (type $0)
    (call $called1)
  )
  (func $called1 (type $0)
    (nop)
  )
  (func $called_indirect (type $0)
    (nop)
  )
  (func $exported (type $0)
    (call $called2)
  )
  (func $called2 (type $0)
    (call $called2)
    (call $called3)
  )
  (func $called3 (type $0)
    (call $called4)
  )
  (func $called4 (type $0)
    (call $called3)
  )
  (func $remove0 (type $0)
    (call $remove1)
  )
  (func $remove1 (type $0)
    (nop)
  )
  (func $remove2 (type $0)
    (call $remove2)
  )
  (func $remove3 (type $0)
    (call $remove4)
  )
  (func $remove4 (type $0)
    (call $remove3)
  )
)