blob: 1570c8e2225186e1a71a3f5c3ea7f9c10b73bc2c [file] [log] [blame] [edit]
//! Ensure ABI-incompatible features cannot be enabled via `#[target_feature]`.
//@ compile-flags: --target=riscv64gc-unknown-linux-gnu --crate-type=lib
//@ needs-llvm-components: riscv
//@ ignore-backends: gcc
//@ add-core-stubs
#![feature(no_core, riscv_target_feature)]
#![no_core]
extern crate minicore;
use minicore::*;
#[target_feature(enable = "zdinx")]
//~^ERROR: cannot be enabled with
pub unsafe fn my_fun() {}