unreferenced-used-static: run test everywhere
This commit is contained in:
parent
38d0f87a49
commit
cf6f6ca441
1 changed files with 4 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
||||||
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics couldn't be
|
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics in the
|
||||||
// removed by the MSVC linker, causing linking errors.
|
// 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
|
//@ build-pass: needs linking
|
||||||
//@ only-msvc
|
|
||||||
|
|
||||||
#[used]
|
#[used]
|
||||||
static FOO: u32 = 0;
|
static FOO: u32 = 0;
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue