mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
16 lines
460 B
Rust
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();
|
|
}
|