mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
11 lines
299 B
Rust
11 lines
299 B
Rust
// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics in the
|
|
// 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
|
|
|
|
#[used]
|
|
static FOO: u32 = 0;
|
|
|
|
fn main() {}
|