]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/reg-conflict.rs
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / src / test / ui / asm / reg-conflict.rs
1 // compile-flags: --target armv7-unknown-linux-gnueabihf
2 // needs-llvm-components: arm
3
4 #![feature(no_core, lang_items, rustc_attrs)]
5 #![no_core]
6
7 #[rustc_builtin_macro]
8 macro_rules! asm {
9     () => {};
10 }
11 #[lang = "sized"]
12 trait Sized {}
13
14 fn main() {
15     unsafe {
16         asm!("", out("d0") _, out("d1") _);
17         asm!("", out("d0") _, out("s1") _);
18         //~^ ERROR register `s1` conflicts with register `d0`
19     }
20 }