summaryrefslogtreecommitdiff
path: root/test/passes/untee.wast
blob: 6b66ccf84eb1eb9029aec68e53b8c3e4d8099fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(module
  (func $tee
    (local $x i32)
    (local $y f64)
    (drop (local.tee $x (i32.const 1)))
    (drop (local.tee $y (f64.const 2)))
    (local.set $x (local.tee $x (i32.const 3)))
    (local.set $x (local.tee $x (local.tee $x (i32.const 3))))
    (drop (local.tee $x (unreachable)))
  )
)