wasmer/lib/runtime-core/spectests/store_retval.wast
Brandon Fish 74875ed554 Library restructure (#104)
* Move wasmer-runtime to wasmer-runtime-core

* Add the runtime library

* Fix issue with macros using wasmer_runtime, fmt

* Make default compiler dependency optional

* Add instantiate and validate functions
2019-01-22 11:02:06 -08:00

56 lines
1.6 KiB
Plaintext

(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"
)