mirror of
https://github.com/rust-lang/rust
synced 2024-09-29 21:28:29 +00:00
add non-regression test for issue 127052
This commit is contained in:
parent
224cb3f638
commit
57931e5040
|
@ -0,0 +1,9 @@
|
|||
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics couldn't be
|
||||
// removed by the MSVC linker, causing linking errors.
|
||||
|
||||
//@ build-pass: needs linking
|
||||
//@ only-msvc
|
||||
|
||||
#[used]
|
||||
static FOO: u32 = 0;
|
||||
fn main() {}
|
Loading…
Reference in a new issue