2020-06-05 12:03:43 +02:00
|
|
|
// compile-flags: -Zsave-analysis
|
2021-06-24 14:01:49 +00:00
|
|
|
// needs-asm-support
|
2020-06-05 12:03:43 +02:00
|
|
|
// Also test for #72960
|
2020-05-26 11:27:27 +01:00
|
|
|
|
2020-05-26 11:04:34 +01:00
|
|
|
#![feature(asm)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
asm!("", in("invalid") "".len());
|
2020-05-26 11:27:27 +01:00
|
|
|
//~^ ERROR: invalid register `invalid`: unknown register
|
2020-05-26 11:04:34 +01:00
|
|
|
}
|
|
|
|
}
|