Skip to content

Commit 18ec452

Browse files
authored
Rollup merge of #127115 - RalfJung:unreferenced-used-static, r=lqd,ChrisDenton
unreferenced-used-static: run test everywhere Follow-up to #127099.
2 parents 3e6f6de + cf6f6ca commit 18ec452

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics couldn't be
2-
// removed by the MSVC linker, causing linking errors.
1+
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics in the
2+
// binary crate would be marked as "exported", but not be present in the binary, causing linking
3+
// errors with the MSVC linker.
34

45
//@ build-pass: needs linking
5-
//@ only-msvc
66

77
#[used]
88
static FOO: u32 = 0;
9+
910
fn main() {}

0 commit comments

Comments
 (0)