summaryrefslogtreecommitdiffstats
path: root/src/test/ui/target-feature/gate.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/target-feature/gate.rs
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/test/ui/target-feature/gate.rs36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/ui/target-feature/gate.rs b/src/test/ui/target-feature/gate.rs
new file mode 100644
index 000000000..2382c98f8
--- /dev/null
+++ b/src/test/ui/target-feature/gate.rs
@@ -0,0 +1,36 @@
+// ignore-arm
+// ignore-aarch64
+// ignore-wasm
+// ignore-emscripten
+// ignore-mips
+// ignore-mips64
+// ignore-powerpc
+// ignore-powerpc64
+// ignore-powerpc64le
+// ignore-riscv64
+// ignore-sparc
+// ignore-sparc64
+// ignore-s390x
+// gate-test-sse4a_target_feature
+// gate-test-powerpc_target_feature
+// gate-test-avx512_target_feature
+// gate-test-tbm_target_feature
+// gate-test-arm_target_feature
+// gate-test-hexagon_target_feature
+// gate-test-mips_target_feature
+// gate-test-wasm_target_feature
+// gate-test-adx_target_feature
+// gate-test-cmpxchg16b_target_feature
+// gate-test-movbe_target_feature
+// gate-test-rtm_target_feature
+// gate-test-f16c_target_feature
+// gate-test-riscv_target_feature
+// gate-test-ermsb_target_feature
+// gate-test-bpf_target_feature
+// gate-test-aarch64_ver_target_feature
+
+#[target_feature(enable = "avx512bw")]
+//~^ ERROR: currently unstable
+unsafe fn foo() {}
+
+fn main() {}