From 660509d717cf8ddfdff689d6f4495f0e57e21c8a Mon Sep 17 00:00:00 2001
From: Jeff Martin <martinjeffrey@google.com>
Date: Thu, 20 Mar 2025 12:25:08 -0400
Subject: [PATCH] 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.
---
 tests/ui/attributes/auxiliary/used_pre_main_constructor.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs b/tests/ui/attributes/auxiliary/used_pre_main_constructor.rs
index d94572ef5d6cd..8ea7a9cb4b5ac 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"
 )]