mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
21 lines
424 B
Rust
21 lines
424 B
Rust
//@ compile-flags: --target armv7-unknown-linux-gnueabihf
|
|
//@ needs-llvm-components: arm
|
|
|
|
#![feature(no_core, lang_items, rustc_attrs)]
|
|
#![no_core]
|
|
|
|
#[rustc_builtin_macro]
|
|
macro_rules! asm {
|
|
() => {};
|
|
}
|
|
#[lang = "sized"]
|
|
trait Sized {}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
asm!("", out("d0") _, out("d1") _);
|
|
asm!("", out("d0") _, out("s1") _);
|
|
//~^ ERROR register `s1` conflicts with register `d0`
|
|
}
|
|
}
|