rust/tests/ui/asm/issue-72570.rs
2024-02-16 20:02:50 +00:00

11 lines
184 B
Rust

//@ needs-asm-support
use std::arch::asm;
fn main() {
unsafe {
asm!("", in("invalid") "".len());
//~^ ERROR: invalid register `invalid`: unknown register
}
}