about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-asm_experimental_reg.rs
blob: 6c53c2213a5e6c79b14a6136ea475835fed9d898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ add-core-stubs
//@ 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]

extern crate minicore;
use minicore::*;

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
}