summaryrefslogtreecommitdiff
path: root/test/lit/array-new-fixed.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-02-06 13:06:28 -0800
committerGitHub <noreply@github.com>2024-02-06 13:06:28 -0800
commit41b365e99ffd68f427b561121c364028f2c2d2f9 (patch)
treef1d28d8564686e7381cb4c1cfcb2872da8cadddf /test/lit/array-new-fixed.wast
parent3db60dfeb4cb07b239e7f3210b20af547a6554fc (diff)
downloadbinaryen-41b365e99ffd68f427b561121c364028f2c2d2f9.tar.gz
binaryen-41b365e99ffd68f427b561121c364028f2c2d2f9.tar.bz2
binaryen-41b365e99ffd68f427b561121c364028f2c2d2f9.zip
Make `array.new_fixed` length annotations mandatory (#6277)
They were previously optional to ease the transition to the standard text format, but now we can make them mandatory to match the spec. This will simplify the new text parser as well.
Diffstat (limited to 'test/lit/array-new-fixed.wast')
-rw-r--r--test/lit/array-new-fixed.wast36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/lit/array-new-fixed.wast b/test/lit/array-new-fixed.wast
deleted file mode 100644
index 60fbc7c93..000000000
--- a/test/lit/array-new-fixed.wast
+++ /dev/null
@@ -1,36 +0,0 @@
-;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.
-;; RUN: wasm-opt -all %s -S -o - | filecheck %s
-
-;; Check that we can optionally specify the size of the array.
-(module
- ;; CHECK: (type $array (array i32))
- (type $array (array i32))
- ;; CHECK: (func $test (type $1)
- ;; CHECK-NEXT: (drop
- ;; CHECK-NEXT: (array.new_fixed $array 2
- ;; CHECK-NEXT: (i32.const 0)
- ;; CHECK-NEXT: (i32.const 1)
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: (drop
- ;; CHECK-NEXT: (array.new_fixed $array 2
- ;; CHECK-NEXT: (i32.const 0)
- ;; CHECK-NEXT: (i32.const 1)
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: )
- (func $test
- (drop
- (array.new_fixed $array
- (i32.const 0)
- (i32.const 1)
- )
- )
- (drop
- (array.new_fixed $array 2
- (i32.const 0)
- (i32.const 1)
- )
- )
- )
-)