about summary refs log tree commit diff
path: root/tests/ui/asm/binary_asm_labels_allowed.rs
blob: a21ab8d70f5b41b5965c174bfc7fa905dbfd596f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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");
    }
}