summaryrefslogtreecommitdiffstats
path: root/src/test/ui/asm/aarch64/llvm-58384.rs
blob: 308f789082959c70a30503abd0d51c540ed3cb13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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);
}