Skip to content

Commit dc04c0c

Browse files
committed
add test
1 parent 039af88 commit dc04c0c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//! This is a regression test for <https://github.com/rust-lang/rust/issues/137366>, ensuring
2+
//! that we can use the `neon` target feature on ARM-32 targets in rustdoc despite there
3+
//! being a "forbidden" feature of the same name for aarch64, and rustdoc merging the
4+
//! target features of all targets.
5+
//@ check-pass
6+
//@ compile-flags: --target armv7-unknown-linux-gnueabihf
7+
8+
#![crate_type = "lib"]
9+
#![feature(no_core, lang_items)]
10+
#![feature(arm_target_feature)]
11+
#![no_core]
12+
13+
#[lang = "sized"]
14+
pub trait Sized {}
15+
16+
// `fp-armv8` is "forbidden" on aarch64 as we tie it to `neon`.
17+
#[target_feature(enable = "fp-armv8")]
18+
pub fn fun() {}

0 commit comments

Comments
 (0)