diff options
Diffstat (limited to 'tests/codegen/sanitizer/cfi-add-enable-split-lto-unit-flag.rs')
-rw-r--r-- | tests/codegen/sanitizer/cfi-add-enable-split-lto-unit-flag.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/codegen/sanitizer/cfi-add-enable-split-lto-unit-flag.rs b/tests/codegen/sanitizer/cfi-add-enable-split-lto-unit-flag.rs new file mode 100644 index 000000000..68c91384b --- /dev/null +++ b/tests/codegen/sanitizer/cfi-add-enable-split-lto-unit-flag.rs @@ -0,0 +1,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} |