limit size of Opcode

This commit is contained in:
NikVolf
2018-01-22 17:14:42 +03:00
parent 9275b253ca
commit 8aea108f40

View File

@ -1223,3 +1223,8 @@ fn display() {
let opcode = Opcode::I64Store(0, 0); let opcode = Opcode::I64Store(0, 0);
assert_eq!("i64.store", format!("{}", opcode)); assert_eq!("i64.store", format!("{}", opcode));
} }
#[test]
fn size_off() {
assert!(::std::mem::size_of::<Opcode>() <= 24);
}