blob: 975cf3e562896653560de3154a6a5839e214811e [file] [log] [blame] [edit]
//! Ensure ABI-incompatible features cannot be enabled via `#[target_feature]`.
//@ compile-flags: --target=riscv32e-unknown-none-elf --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 = "d")]
//~^ERROR: cannot be enabled with
pub unsafe fn my_fun() {}