blob: 9576cb8f813187cd2ab17242ee48fb651db6ab84 [file] [edit]
//@ build-fail
//@ ignore-s390x
//@ normalize-stderr: "target arch `(.*)`" -> "target arch `TARGET_ARCH`"
//@ ignore-backends: gcc
#![feature(link_llvm_intrinsics, abi_unadjusted)]
extern "unadjusted" {
#[link_name = "llvm.s390.sfpc"]
fn foo(a: i32);
//~^ ERROR: intrinsic `llvm.s390.sfpc` cannot be used with target arch
}
pub fn main() {
unsafe {
foo(0);
}
}