Skip to content

Commit

Permalink
Unrolled build for rust-lang#127115
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127115 - RalfJung:unreferenced-used-static, r=lqd,ChrisDenton

unreferenced-used-static: run test everywhere

Follow-up to rust-lang#127099.
  • Loading branch information
rust-timer authored Jul 3, 2024
2 parents d68fe4e + cf6f6ca commit 16303ae
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// 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 would be marked as "exported", but not be present in the binary, causing linking
// errors with the MSVC linker.

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

#[used]
static FOO: u32 = 0;

fn main() {}

0 comments on commit 16303ae

Please sign in to comment.