summaryrefslogtreecommitdiff
path: root/test/regress/undefined-shifts.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/undefined-shifts.txt')
-rw-r--r--test/regress/undefined-shifts.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/regress/undefined-shifts.txt b/test/regress/undefined-shifts.txt
new file mode 100644
index 00000000..6bfc3c3d
--- /dev/null
+++ b/test/regress/undefined-shifts.txt
@@ -0,0 +1,21 @@
+;;; TOOL: run-gen-wasm-bad
+;;; ARGS1: --enable-multi-memory
+;;; ARGS2: --enable-multi-memory
+magic
+version
+section(TYPE) { count[1] function params[0] results[0] }
+section(FUNCTION) { count[1] type[0] }
+section(MEMORY) { count[1] flags[0] min[1] }
+section(CODE) {
+ count[1]
+ func {
+ locals[0]
+ i32.const leb_u32(0)
+ i32.load align[63] offset[0]
+ drop
+ }
+}
+(;; STDERR ;;;
+0000020: error: invalid load alignment: 63
+0000020: error: invalid load alignment: 63
+;;; STDERR ;;)