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