mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
6bd85c4de4
Break type metadata identifiers tests into smaller set of tests/files, and move CFI (and KCFI) codegen tests to a cfi (and kcfi) subdirectory.
12 lines
261 B
Rust
12 lines
261 B
Rust
// 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}
|