about summary refs log tree commit diff
path: root/tests/codegen/sanitizer/cfi/add-enable-split-lto-unit-flag.rs
blob: 05eea13c6ee0351661376aeea8070c0b84848419 (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 -Zsanitizer=cfi

#![crate_type="lib"]

pub fn foo() {
}

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