Skip to content

Commit 3b4ac01

Browse files
committed
unreferenced-used-static: run test everywhere
1 parent 38d0f87 commit 3b4ac01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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 couldn't be found by the MSVC linker, causing linking errors.
33

44
//@ build-pass: needs linking
5-
//@ only-msvc
65

76
#[used]
87
static FOO: u32 = 0;
8+
99
fn main() {}

0 commit comments

Comments
 (0)