diff --git a/src/arch/x86/mod.rs b/src/arch/x86/mod.rs index 512bca70..f5dc562d 100644 --- a/src/arch/x86/mod.rs +++ b/src/arch/x86/mod.rs @@ -44,12 +44,12 @@ mod tests { asm!( " xor eax, eax - je ret5 + je 5f mov eax, 2 - jmp done - ret5: + jmp 1f + 5: mov eax, 5 - done: + 1: ret", options(noreturn) ); @@ -103,11 +103,11 @@ mod tests { unsafe extern "C" fn external_loop() -> i32 { asm!( " - loop dest + loop 1f nop nop nop - dest:", + 1:", options(noreturn) ); }