summaryrefslogtreecommitdiff
path: root/test/passes/legalize-js-interface.wast
blob: da8a0b2ff2cbd082b4f42b99f03986917af144c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(module
  (import "env" "imported" (func $imported (result i64)))
  (import "env" "other" (func $other (param i32) (param i64) (param i64)))
  (export "func" (func $func))
  (export "imported" (func $imported))
  (export "imported_again" (func $imported))
  (export "other" (func $other))
  (func $func (result i64)
    (drop (call $imported))
    (call $other
      (i32.const 0)
      (i64.const 0)
      (i64.const 0)
    )
    (unreachable)
  )
)
(module)