summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/sanitizer-cfi-add-canonical-jump-tables-flag.rs
blob: c42fbba74254a3555e941cad40177521260b9979 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Verifies that "CFI Canonical Jump Tables" 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 2, !"CFI Canonical Jump Tables", i32 1}