mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
17 lines
295 B
Rust
17 lines
295 B
Rust
//@ only-aarch64
|
|
//@ run-pass
|
|
//@ needs-asm-support
|
|
|
|
// Test that we properly work around this LLVM issue:
|
|
// https://github.com/llvm/llvm-project/issues/58384
|
|
|
|
use std::arch::asm;
|
|
|
|
fn main() {
|
|
let a: i32;
|
|
unsafe {
|
|
asm!("", inout("x0") 435 => a);
|
|
}
|
|
assert_eq!(a, 435);
|
|
}
|