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