rust/tests/ui/lto/dwarf-mixed-versions-lto.rs
2025-04-14 21:26:41 -05:00

16 lines
460 B
Rust

// 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();
}