wasmer/lib/runtime-core/spectests/store_retval.wast

56 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-01-09 04:59:55 +00:00
(assert_invalid
(module (func (param i32) (result i32) (set_local 0 (i32.const 1))))
"type mismatch"
)
(assert_invalid
(module (func (param i64) (result i64) (set_local 0 (i64.const 1))))
"type mismatch"
)
(assert_invalid
(module (func (param f32) (result f32) (set_local 0 (f32.const 1))))
"type mismatch"
)
(assert_invalid
(module (func (param f64) (result f64) (set_local 0 (f64.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i32) (result i32) (i32.store (i32.const 0) (i32.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i64) (result i64) (i64.store (i32.const 0) (i64.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param f32) (result f32) (f32.store (i32.const 0) (f32.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param f64) (result f64) (f64.store (i32.const 0) (f64.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i32) (result i32) (i32.store8 (i32.const 0) (i32.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i32) (result i32) (i32.store16 (i32.const 0) (i32.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i64) (result i64) (i64.store8 (i32.const 0) (i64.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i64) (result i64) (i64.store16 (i32.const 0) (i64.const 1))))
"type mismatch"
)
(assert_invalid
(module (memory 1) (func (param i64) (result i64) (i64.store32 (i32.const 0) (i64.const 1))))
"type mismatch"
)