rust/tests/ui/lto/dwarf-mixed-versions-lto.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
460 B
Rust
Raw Permalink Normal View History

// This test verifies that we do not produce a warning when performing LTO on a
// crate graph that contains a mix of different DWARF version settings. This
// matches Clang's behavior.
//@ ignore-msvc Platform must use DWARF
//@ aux-build:dwarf-mixed-versions-lto-aux.rs
//@ compile-flags: -C lto -g -Cdwarf-version=5
//@ no-prefer-dynamic
//@ build-pass
extern crate dwarf_mixed_versions_lto_aux;
fn main() {
dwarf_mixed_versions_lto_aux::say_hi();
}