diff options
Diffstat (limited to 'tests/ui/target-feature/allowed-softfloat-target-feature-flag-disable.rs')
| -rw-r--r-- | tests/ui/target-feature/allowed-softfloat-target-feature-flag-disable.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/target-feature/allowed-softfloat-target-feature-flag-disable.rs b/tests/ui/target-feature/allowed-softfloat-target-feature-flag-disable.rs new file mode 100644 index 00000000000..e34faf5a983 --- /dev/null +++ b/tests/ui/target-feature/allowed-softfloat-target-feature-flag-disable.rs @@ -0,0 +1,9 @@ +//@ 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] + +#[lang = "sized"] +pub trait Sized {} |
