summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-functions.wast
blob: 4c89804bf597be4c01731bbdfe1da342f1cd3ded (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
(module
  (start $start)
  (export "exported" $exported)
  (table $called_indirect)
  (func $start
    (call $called0)
  )
  (func $called0
    (call $called1)
  )
  (func $called1
    (nop)
  )
  (func $called_indirect
    (nop)
  )
  (func $exported
    (call $called2)
  )
  (func $called2
    (call $called2)
    (call $called3)
  )
  (func $called3
    (call $called4)
  )
  (func $called4
    (call $called3)
  )
  (func $remove0
    (call $remove1)
  )
  (func $remove1
    (nop)
  )
  (func $remove2
    (call $remove2)
  )
  (func $remove3
    (call $remove4)
  )
  (func $remove4
    (call $remove3)
  )
)