]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/issue-99071.rs
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / src / test / ui / asm / issue-99071.rs
1 // compile-flags: --target thumbv6m-none-eabi
2 // needs-llvm-components: arm
3 // needs-asm-support
4
5 #![feature(no_core, lang_items, rustc_attrs)]
6 #![no_core]
7 #![crate_type = "rlib"]
8
9 #[rustc_builtin_macro]
10 macro_rules! asm {
11     () => {};
12 }
13 #[lang = "sized"]
14 trait Sized {}
15
16 pub fn foo() {
17     unsafe {
18         asm!("", in("r8") 0);
19         //~^ cannot use register `r8`: high registers (r8+) can only be used as clobbers in Thumb-1 code
20     }
21 }