about summary refs log tree commit diff
path: root/tests/ui/asm/reg-conflict.rs
blob: 0c1f0eb570b7a7a7de025a79785d5b9a662ca080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ add-core-stubs
//@ compile-flags: --target armv7-unknown-linux-gnueabihf
//@ needs-llvm-components: arm

#![feature(no_core)]
#![no_core]

extern crate minicore;
use minicore::*;

fn main() {
    unsafe {
        asm!("", out("d0") _, out("d1") _);
        asm!("", out("d0") _, out("s1") _);
        //~^ ERROR register `s1` conflicts with register `d0`
    }
}