Skip to content

Commit

Permalink
unreferenced-used-static: run test everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 29, 2024
1 parent 38d0f87 commit 3b4ac01
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics couldn't be
// removed by the MSVC linker, causing linking errors.
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics in the
// binary crate couldn't be found by the MSVC linker, causing linking errors.

//@ build-pass: needs linking
//@ only-msvc

#[used]
static FOO: u32 = 0;

fn main() {}

0 comments on commit 3b4ac01

Please sign in to comment.