Inline asm!
only checked when used
#80440
Labels
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
C-bug
Category: This is a bug.
F-asm
`#![feature(asm)]` (not `llvm_asm`)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
(playground)
I expected to see this happen: Compilation error because
xchgfoobarbaz
is not a valid assembly instruction.Instead, this happened: The code compiles without errors or warnings. A compile error only occurs if the
foo()
call is uncommented inmain
.Meta
Nightly version on playground: 2020-12-22 bb1fbbf
Originally reported by @tomaka in rust-osdev/x86_64#218.
The text was updated successfully, but these errors were encountered: