diff options
Diffstat (limited to 'test/lit/passes/extract-function.wast')
-rw-r--r-- | test/lit/passes/extract-function.wast | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/lit/passes/extract-function.wast b/test/lit/passes/extract-function.wast index e4b804abe..9258f8c63 100644 --- a/test/lit/passes/extract-function.wast +++ b/test/lit/passes/extract-function.wast @@ -5,6 +5,15 @@ ;; RUN: foreach %s %t wasm-opt --extract-function-index --pass-arg=extract-function-index@0 -S -o - | filecheck %s (module + ;; CHECK: (type $0 (func)) + + ;; CHECK: (import "env" "bar" (func $bar)) + + ;; CHECK: (export "foo" (func $foo)) + + ;; CHECK: (func $foo + ;; CHECK-NEXT: (call $bar) + ;; CHECK-NEXT: ) (func $foo (call $bar) ) @@ -18,11 +27,6 @@ ) ) -;; CHECK: (type $0 (func)) - -;; CHECK: (import "env" "bar" (func $bar)) - -;; CHECK: (export "foo" (func $bar)) (module ;; Use another function in the table, but the table is not used in the ;; extracted function |