2025-04-28 15:22:14 +02:00
|
|
|
//! `x87` is a required target feature on some x86 targets, but not on this one as this one
|
|
|
|
|
//! uses soft-floats. So ensure disabling the target feature here (which is a NOP) does
|
|
|
|
|
//! not trigger a warning.
|
2024-11-16 10:26:46 +01:00
|
|
|
//@ compile-flags: --target=x86_64-unknown-none --crate-type=lib
|
|
|
|
|
//@ needs-llvm-components: x86
|
|
|
|
|
//@ compile-flags: -Ctarget-feature=-x87
|
|
|
|
|
//@ build-pass
|
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
|
#![no_core]
|
|
|
|
|
|
2025-01-23 11:25:12 +00:00
|
|
|
#[lang = "pointee_sized"]
|
|
|
|
|
pub trait PointeeSized {}
|
|
|
|
|
|
|
|
|
|
#[lang = "meta_sized"]
|
|
|
|
|
pub trait MetaSized: PointeeSized {}
|
|
|
|
|
|
2024-11-16 10:26:46 +01:00
|
|
|
#[lang = "sized"]
|
2025-01-23 11:25:12 +00:00
|
|
|
pub trait Sized: MetaSized {}
|
2025-03-23 15:50:51 +03:00
|
|
|
|
|
|
|
|
//~? WARN unstable feature specified for `-Ctarget-feature`: `x87`
|