rust/tests/ui/asm/bad-arch.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
579 B
Rust
Raw Normal View History

2020-11-02 14:59:45 -06:00
// compile-flags: --target sparc-unknown-linux-gnu
// needs-llvm-components: sparc
// revisions: mirunsafeck thirunsafeck
// [thirunsafeck]compile-flags: -Z thir-unsafeck
#![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 {
() => {};
}
#[lang = "sized"]
trait Sized {}
fn main() {
unsafe {
asm!("");
//~^ ERROR inline assembly is unsupported on this target
}
}
2021-04-13 12:11:11 -05:00
global_asm!("");
//~^ ERROR inline assembly is unsupported on this target