summary refs log tree commit diff
path: root/tests/codegen/split-lto-unit.rs
blob: 6cea9a2d8d5f227d7a0436fdf23f0b7128153995 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Verifies that "EnableSplitLTOUnit" module flag is added.
//
//@ needs-sanitizer-cfi
//@ compile-flags: -Clto -Ctarget-feature=-crt-static -Zsplit-lto-unit

#![crate_type="lib"]

pub fn foo() {
}

// CHECK: !{{[0-9]+}} = !{i32 4, !"EnableSplitLTOUnit", i32 1}