2025-01-29 12:16:51 +01:00
|
|
|
//@ compile-flags: --target=i686-unknown-linux-gnu --crate-type=lib
|
|
|
|
|
//@ needs-llvm-components: x86
|
|
|
|
|
//@ compile-flags: -Ctarget-cpu=pentium
|
|
|
|
|
// For now this is just a warning.
|
|
|
|
|
//@ 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 {}
|
|
|
|
|
|
2025-01-29 12:16:51 +01:00
|
|
|
#[lang = "sized"]
|
2025-01-23 11:25:12 +00:00
|
|
|
pub trait Sized: MetaSized {}
|
2025-03-29 02:41:32 +03:00
|
|
|
|
|
|
|
|
//~? WARN target feature `sse2` must be enabled to ensure that the ABI of the current target can be implemented correctly
|