mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-11 14:48:44 +00:00
18 lines
353 B
Rust
18 lines
353 B
Rust
//@ build-pass
|
|
//@ only-aarch64
|
|
|
|
// The `binary_asm_labels` lint should only be raised on `x86`. Make sure it
|
|
// doesn't get raised on other platforms.
|
|
|
|
use std::arch::asm;
|
|
|
|
fn main() {
|
|
unsafe {
|
|
asm!("0: bl 0b");
|
|
asm!("1: bl 1b");
|
|
asm!("10: bl 10b");
|
|
asm!("01: bl 01b");
|
|
asm!("1001101: bl 1001101b");
|
|
}
|
|
}
|