summaryrefslogtreecommitdiffstats
path: root/tests/ui/asm/issue-72570.rs
blob: ac589de2303f9c6f398eedfc3c2d767d9cd62b8c (plain)
1
2
3
4
5
6
7
8
9
10
// needs-asm-support

use std::arch::asm;

fn main() {
    unsafe {
        asm!("", in("invalid") "".len());
        //~^ ERROR: invalid register `invalid`: unknown register
    }
}