mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 11:11:14 +00:00
24 lines
507 B
Rust
24 lines
507 B
Rust
//@ needs-asm-support
|
|
//@ compile-flags: --target s390x-unknown-linux-gnu
|
|
//@ needs-llvm-components: systemz
|
|
|
|
#![feature(no_core, lang_items, rustc_attrs)]
|
|
#![crate_type = "rlib"]
|
|
#![no_core]
|
|
|
|
#[rustc_builtin_macro]
|
|
macro_rules! asm {
|
|
() => {};
|
|
}
|
|
|
|
#[lang = "sized"]
|
|
trait Sized {}
|
|
#[lang = "copy"]
|
|
trait Copy {}
|
|
|
|
unsafe fn main() {
|
|
asm!("", in("v0") 0);
|
|
//~^ ERROR register class `vreg` can only be used as a clobber in stable
|
|
//~| ERROR type `i32` cannot be used with this register class
|
|
}
|