rust/tests/ui/asm/issue-72570.rs
2023-01-11 09:32:08 +00:00

13 lines
241 B
Rust

// compile-flags: -Zsave-analysis
// needs-asm-support
// Also test for #72960
use std::arch::asm;
fn main() {
unsafe {
asm!("", in("invalid") "".len());
//~^ ERROR: invalid register `invalid`: unknown register
}
}