mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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 New Issue
Block a user