about summary refs log tree commit diff
path: root/tests/ui-fulldeps/codegen-backend
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-01-27 18:30:17 +0100
committerRalf Jung <post@ralfj.de>2025-01-28 04:40:42 +0100
commit93ee180cfa12cfca5e0ce79bb3d9a3eaf91cf7b5 (patch)
treee59f8391d35d7307398c50f49cf00a6d0def9ff6 /tests/ui-fulldeps/codegen-backend
parentf753850659bdf5788332525f3fe395685929c682 (diff)
downloadrust-93ee180cfa12cfca5e0ce79bb3d9a3eaf91cf7b5.tar.gz
rust-93ee180cfa12cfca5e0ce79bb3d9a3eaf91cf7b5.zip
ABI-required target features: warn when they are missing in base CPU (rather than silently enabling them)
Diffstat (limited to 'tests/ui-fulldeps/codegen-backend')
-rw-r--r--tests/ui-fulldeps/codegen-backend/hotplug.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui-fulldeps/codegen-backend/hotplug.rs b/tests/ui-fulldeps/codegen-backend/hotplug.rs
index 917b20fcdb5..ce310ba3e31 100644
--- a/tests/ui-fulldeps/codegen-backend/hotplug.rs
+++ b/tests/ui-fulldeps/codegen-backend/hotplug.rs
@@ -6,6 +6,10 @@
 //@ normalize-stdout: "libthe_backend.dylib" -> "libthe_backend.so"
 //@ normalize-stdout: "the_backend.dll" -> "libthe_backend.so"
 
+// Pick a target that requires no target features, so that no warning is shown
+// about missing target features.
+//@ compile-flags: --target arm-unknown-linux-gnueabi
+//@ needs-llvm-components: arm
 //@ revisions: normal dep bindep
 //@ compile-flags: --crate-type=lib
 //@ [normal] compile-flags: --emit=link=-