about summary refs log tree commit diff
path: root/tests/ui/target-feature/allowed-softfloat-target-feature-attribute.rs
blob: 8b60820cc9b68191852422e261d9cb3b92e0c3a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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() {}