rust/tests/ui/asm/issue-72570.rs

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
}
}