summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination_all-features.wast
blob: 587271728a8a084c81a865db8d32f9bd5756c2ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
;; --dupliate-function-elimination should not remove functions used in ref.func.
(module
  (func $0 (result i32)
    (i32.const 0)
  )
  (func $1 (result i32)
    (i32.const 0)
  )
  (func $test (result funcref)
    (ref.func $1)
  )
)