Skip to content

Commit 6e0bff9

Browse files
committed
test warning about known issue 79555 with lld
1 parent 877fa6b commit 6e0bff9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// build-pass
2+
// needs-profiler-support
3+
// needs-rust-lld
4+
// compile-flags: -C linker-flavor=gcc:lld -Z unstable-options -Clink-self-contained=y -Cinstrument-coverage
5+
6+
// Test ensuring that a warning referencing lld known issue 79555 is emitted when:
7+
// - we're asking to use lld, via the enriched gcc linker-flavor
8+
// - the CRT object linking is on
9+
// - either coverage or generating a profile is requested
10+
11+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
warning: Using `lld`, self-contained linking, and coverage or profile generation has known issues. See issue #79555 for more details, at https://github.com/rust-lang/rust/issues/79555
2+
3+
warning: 1 warning emitted
4+

0 commit comments

Comments
 (0)