rust/src/test/ui/asm/bad-arch.rs
2021-05-13 22:31:58 +01:00

27 lines
469 B
Rust

// compile-flags: --target sparc-unknown-linux-gnu
// needs-llvm-components: sparc
#![feature(no_core, lang_items, rustc_attrs)]
#![no_core]
#[rustc_builtin_macro]
macro_rules! asm {
() => {};
}
#[rustc_builtin_macro]
macro_rules! global_asm {
() => {};
}
#[lang = "sized"]
trait Sized {}
fn main() {
unsafe {
asm!("");
//~^ ERROR asm! is unsupported on this target
}
}
global_asm!("");
//~^ ERROR asm! is unsupported on this target