mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
26 lines
493 B
Rust
26 lines
493 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 inline assembly is unsupported on this target
|
|
}
|
|
}
|
|
|
|
global_asm!("");
|
|
//~^ ERROR inline assembly is unsupported on this target
|