diff options
Diffstat (limited to 'test/lit/merge')
-rw-r--r-- | test/lit/merge/import_cycle.wat | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/lit/merge/import_cycle.wat b/test/lit/merge/import_cycle.wat index 0261eabc5..84d6017b9 100644 --- a/test/lit/merge/import_cycle.wat +++ b/test/lit/merge/import_cycle.wat @@ -1,16 +1,10 @@ -;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. -;; RUN: wasm-merge %s first %s.second second -S -o - | filecheck %s +;; RUN: not wasm-merge %s first %s.second second 2>&1 | filecheck %s -;; Test that wasm-merge terminates when there are importation cycles +;; Test that wasm-merge terminates with an error when there is an import cycle. -(module - ;; CHECK: (type $none_=>_none (func)) +;; CHECK: Fatal: wasm-merge: infinite loop of imports on f - ;; CHECK: (import "second" "g" (func $f)) +(module (import "second" "g" (func $f)) - ;; CHECK: (import "first" "f" (func $f_1)) - - ;; CHECK: (export "f" (func $f_1)) (export "f" (func $f)) ) -;; CHECK: (export "g" (func $f)) |