mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-28 22:22:02 +00:00
limit size of Opcode
This commit is contained in:
@ -1223,3 +1223,8 @@ fn display() {
|
||||
let opcode = Opcode::I64Store(0, 0);
|
||||
assert_eq!("i64.store", format!("{}", opcode));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn size_off() {
|
||||
assert!(::std::mem::size_of::<Opcode>() <= 24);
|
||||
}
|
||||
|
Reference in New Issue
Block a user