Skip to content

Commit 16303ae

Browse files
authored
Unrolled build for rust-lang#127115
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.
2 parents d68fe4e + cf6f6ca commit 16303ae

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)