mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
241 B
Rust
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
|
|
}
|
|
}
|