summaryrefslogtreecommitdiff
path: root/test/lit/merge/import_cycle.wat
blob: 84d6017b941ac5156d0881cb6c29f283a5537c2e (plain)
1
2
3
4
5
6
7
8
9
10
;; RUN: not wasm-merge %s first %s.second second 2>&1 | filecheck %s

;; Test that wasm-merge terminates with an error when there is an import cycle.

;; CHECK: Fatal: wasm-merge: infinite loop of imports on f

(module
  (import "second" "g" (func $f))
  (export "f" (func $f))
)