diff options
| author | Ralf Jung <post@ralfj.de> | 2024-06-29 12:02:44 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-06-29 13:02:59 +0200 |
| commit | cf6f6ca441e2efd3e196f45f36da253c49cec4c0 (patch) | |
| tree | e1e825b0e95443c1d8fc7936f1f0345285cf490d | |
| parent | 38d0f87a493e9ab736185d1d7d17a5c51652740f (diff) | |
| download | rust-cf6f6ca441e2efd3e196f45f36da253c49cec4c0.tar.gz rust-cf6f6ca441e2efd3e196f45f36da253c49cec4c0.zip | |
unreferenced-used-static: run test everywhere
| -rw-r--r-- | tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs b/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs index aa8236b7431..0d34bf988ef 100644 --- a/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs +++ b/tests/ui/linkage-attr/unreferenced-used-static-issue-127052.rs @@ -1,9 +1,10 @@ -// This is a non-regression test for issue #127052 where unreferenced `#[used]` statics couldn't be -// removed by the MSVC linker, causing linking errors. +// 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 -//@ only-msvc #[used] static FOO: u32 = 0; + fn main() {} |
