Open
Description
I tried this code:
use std::arch::asm;
fn main() {
println!("Hello, world!");
unsafe {
asm!(
r#"
jmp 9999
9999:
"#,
options(nostack, att_syntax),
);
}
}
I expected to see this happen: An invalid operand for instruction
error message, or something similar.
Instead, this happened: rustc segfaulted (windows). On Godbolt (Linux?), the code was accepted without error.
If att_syntax
is removed, expected behaviour returns.
rustc --version --verbose
:
rustc 1.73.0-nightly (03a119b0b 2023-08-07)