mirror of https://github.com/rust-lang/rust.git
14 lines
394 B
Rust
14 lines
394 B
Rust
//! Enabling a target feature that is anyway required changes nothing, so this is allowed
|
|
//! for `#[target_feature]`.
|
|
//@ compile-flags: --target=x86_64-unknown-none --crate-type=lib
|
|
//@ needs-llvm-components: x86
|
|
//@ build-pass
|
|
#![feature(no_core, lang_items, x87_target_feature)]
|
|
#![no_core]
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized {}
|
|
|
|
#[target_feature(enable = "x87")]
|
|
pub unsafe fn my_fun() {}
|