rust/tests/codegen/enable-lto-unit-splitting.rs

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

10 lines
239 B
Rust
Raw Permalink Normal View History

// Verifies that "EnableSplitLTOUnit" module flag is added.
//
//@ compile-flags: -Clto -Ctarget-feature=-crt-static -Zsplit-lto-unit
#![crate_type = "lib"]
pub fn foo() {}
// CHECK: !{{[0-9]+}} = !{i32 4, !"EnableSplitLTOUnit", i32 1}