summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-names_all-features.wast
blob: c55268a7ae9302b4d0798a55e8e8927454fc38af (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
(module
 (event $event$0 (attr 0) (param i32))
 (func $0
  (try $label$9 ;; needed due to a rethrow
   (do
   )
   (catch $event$0
    (try $label$8 ;; needed due to a delegate
     (do
      (try $label$6 ;; this one is not needed
       (do
        (rethrow $label$9)
       )
       (delegate $label$8)
      )
     )
     (catch $event$0
      (drop
       (pop i32)
      )
     )
    )
   )
  )
 )
 (func $1
  (try $label$3
   (do
    (nop)
   )
   (delegate 0) ;; delegates to the caller
  )
 )
)