2021-10-07 17:33:13 -05:00
|
|
|
// Verifies that "CFI Canonical Jump Tables" module flag is added.
|
|
|
|
//
|
|
|
|
// needs-sanitizer-cfi
|
2022-04-01 00:50:41 -05:00
|
|
|
// compile-flags: -Clto -Ctarget-feature=-crt-static -Zsanitizer=cfi
|
2021-10-07 17:33:13 -05:00
|
|
|
|
|
|
|
#![crate_type="lib"]
|
|
|
|
|
|
|
|
pub fn foo() {
|
|
|
|
}
|
|
|
|
|
2022-12-13 00:42:44 -06:00
|
|
|
// CHECK: !{{[0-9]+}} = !{i32 4, !"CFI Canonical Jump Tables", i32 1}
|