mirror of https://github.com/rust-lang/rust.git
18 lines
367 B
Rust
18 lines
367 B
Rust
//@ 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`
|
|
}
|
|
}
|