summaryrefslogtreecommitdiff
path: root/test/passes/drop-return-values.txt
blob: 81ca9932776a4481d3f4eee16fd2ea84a950a5a6 (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
(module
  (memory 10)
  (type $0 (func))
  (func $0 (type $0)
    (local $x i32)
    (local $1 i32)
    (i32.add
      (block
        (set_local $x
          (i32.const 10)
        )
        (get_local $x)
      )
      (i32.const 20)
    )
    (i32.add
      (block
        (block
          (set_local $1
            (i32.const 40)
          )
          (i32.store
            (i32.const 30)
            (get_local $1)
          )
        )
        (get_local $1)
      )
      (i32.const 50)
    )
  )
)