summaryrefslogtreecommitdiff
path: root/test/wasm2js/if_unreachable.wast
blob: 65cd4e119ef26f21d0ae9b862cc4fc21aefa4fab (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
(module
 (type $0 (func (param i32 i32 i32 i32 i32 i32)))
 (import "env" "table" (table $timport$0 6 funcref))
 (func $0 (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32)
  (if
   (i32.ne
    (i32.const 0)
    (i32.const 48)
   )
   (then
    (block $label$2
     (br_if $label$2
      (i32.const 0)
     )
     (unreachable)
    )
   )
   (else
    (unreachable)
   )
  )
  (unreachable)
 )
)