about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeff Martin <martinjeffrey@google.com>2025-03-20 12:25:08 -0400
committerJeff Martin <martinjeffrey@google.com>2025-03-20 12:25:08 -0400
commit660509d717cf8ddfdff689d6f4495f0e57e21c8a (patch)
tree1e913f63eb7da6fba63f419ac0519afc6cf71102
parenta7fc463dd8fbeca800d4b3efc501069502cffe64 (diff)
downloadrust-660509d717cf8ddfdff689d6f4495f0e57e21c8a.tar.gz
rust-660509d717cf8ddfdff689d6f4495f0e57e21c8a.zip
Fix the "used_with_archive" test on Fuchsia
This change adds Fuchsia OS as a target to the cfg_attr in the
pre_main_constructor external declaration. This allows the
"tests/ui/attributes/used_with_archive.rs" to pass against Fuchsia.
-rw-r--r--tests/ui/attributes/auxiliary/used_pre_main_constructor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs
index d94572ef5d6..8ea7a9cb4b5 100644
--- a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs
+++ b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs
@@ -19,6 +19,7 @@
         target_os = "netbsd",
         target_os = "nto",
         target_os = "openbsd",
+        target_os = "fuchsia",
     ),
     link_section = ".init_array"
 )]