blob: 266a874a6779eabf22b2fc17140d1f9960fd26bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; RUN: wasm-opt -all %s -S -o - | filecheck %s
;; Check that the deprecated `array.init_static` alias for `array.new_fixed` is
;; parsed correctly.
(module
;; CHECK: (type $none_=>_none (func))
;; CHECK: (type $array (array i32))
(type $array (array i32))
;; CHECK: (func $test (type $none_=>_none)
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (array.new_fixed $array
;; CHECK-NEXT: (i32.const 0)
;; CHECK-NEXT: (i32.const 1)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $test
(drop
(array.init_static $array
(i32.const 0)
(i32.const 1)
)
)
)
)
|