]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/bad-arch.rs
Auto merge of #98471 - wesleywiser:update_measureme, r=Mark-Simulacrum
[rust.git] / src / test / ui / asm / bad-arch.rs
1 // compile-flags: --target sparc-unknown-linux-gnu
2 // needs-llvm-components: sparc
3 // revisions: mirunsafeck thirunsafeck
4 // [thirunsafeck]compile-flags: -Z thir-unsafeck
5
6 #![feature(no_core, lang_items, rustc_attrs)]
7 #![no_core]
8
9 #[rustc_builtin_macro]
10 macro_rules! asm {
11     () => {};
12 }
13 #[rustc_builtin_macro]
14 macro_rules! global_asm {
15     () => {};
16 }
17 #[lang = "sized"]
18 trait Sized {}
19
20 fn main() {
21     unsafe {
22         asm!("");
23         //~^ ERROR inline assembly is unsupported on this target
24     }
25 }
26
27 global_asm!("");
28 //~^ ERROR inline assembly is unsupported on this target