diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lit/passes/name-types.wast | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/lit/passes/name-types.wast b/test/lit/passes/name-types.wast index 03b775f20..197a55226 100644 --- a/test/lit/passes/name-types.wast +++ b/test/lit/passes/name-types.wast @@ -1,12 +1,24 @@ -;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited. +;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. ;; RUN: wasm-opt %s -all --name-types -S -o - | filecheck %s (module + ;; An obnoxious name that will be renamed. (type $obnoxious-super-long-type-name_____________________________1 (struct)) - ;; CHECK: (func $foo (param $x (ref $type$1)) + + ;; A reasonable name that will be kept. + ;; CHECK: (type $type$0 (func (param (ref $type$1) (ref $reasonable-name)))) + + ;; CHECK: (type $type$1 (struct )) + + ;; CHECK: (type $reasonable-name (struct (field i32))) + (type $reasonable-name (struct (field i32))) + + ;; CHECK: (func $foo (param $x (ref $type$1)) (param $y (ref $reasonable-name)) ;; CHECK-NEXT: (nop) ;; CHECK-NEXT: ) (func $foo + ;; Use the types to keep them alive. (param $x (ref $obnoxious-super-long-type-name_____________________________1)) + (param $y (ref $reasonable-name)) ) ) |