Skip to content

Commit 6883139

Browse files
committed
ZJIT: Add test for size of LIR Insn
1 parent 8927a8c commit 6883139

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

zjit/src/backend/lir.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3836,6 +3836,11 @@ mod tests {
38363836
Assembler::new_with_scratch_reg().1
38373837
}
38383838

3839+
#[test]
3840+
fn test_size_of_insn() {
3841+
assert_eq!(std::mem::size_of::<Insn>(), 184);
3842+
}
3843+
38393844
#[test]
38403845
fn test_for_each_operand() {
38413846
let insn = Insn::Add { left: Opnd::None, right: Opnd::None, out: Opnd::None };

0 commit comments

Comments
 (0)