blob: 9cf6eecbe10c08c69f81c08abb0970dadc4d6305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; Test the we can properly parse the annotated array.len format that we no
;; longer emit.
;; RUN: wasm-dis %s.wasm -all | filecheck %s
;; CHECK: (type $none_=>_i32 (func (result i32)))
;; CHECK: (type $[mut:i8] (array (mut i8)))
;; CHECK: (func $0 (type $none_=>_i32) (result i32)
;; CHECK-NEXT: (array.len
;; CHECK-NEXT: (array.new_default $[mut:i8]
;; CHECK-NEXT: (i32.const 0)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
|