Sign in
rust
/
rust
/
refs/heads/beta
/
.
/
tests
/
codegen
/
enable-lto-unit-splitting.rs
blob: 51c2671bc4eb49695f224e730e12e11f9db90acd [
file
] [
log
] [
blame
]
// 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}