2020-11-02 20:59:45 +00:00
|
|
|
//@ compile-flags: --target sparc-unknown-linux-gnu
|
|
|
|
//@ needs-llvm-components: sparc
|
2020-08-06 18:52:15 +00:00
|
|
|
|
|
|
|
#![feature(no_core, lang_items, rustc_attrs)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
#[rustc_builtin_macro]
|
|
|
|
macro_rules! asm {
|
|
|
|
() => {};
|
|
|
|
}
|
2021-04-13 17:11:11 +00:00
|
|
|
#[rustc_builtin_macro]
|
|
|
|
macro_rules! global_asm {
|
|
|
|
() => {};
|
|
|
|
}
|
2020-08-06 18:52:15 +00:00
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
asm!("");
|
2021-04-26 18:49:26 +00:00
|
|
|
//~^ ERROR inline assembly is unsupported on this target
|
2020-08-06 18:52:15 +00:00
|
|
|
}
|
|
|
|
}
|
2021-04-13 17:11:11 +00:00
|
|
|
|
|
|
|
global_asm!("");
|
2021-04-26 18:49:26 +00:00
|
|
|
//~^ ERROR inline assembly is unsupported on this target
|