
Adds KCFI arity indicator support to the Rust compiler (see rust-lang/rust#138311, https://github.com/llvm/llvm-project/pull/121070, and https://lore.kernel.org/lkml/CANiq72=3ghFxy8E=AU9p+0imFxKr5iU3sd0hVUXed5BA+KjdNQ@mail.gmail.com/).
9 lines
304 B
Rust
9 lines
304 B
Rust
// Verifies that `-Zsanitizer-kcfi-arity` requires `-Zsanitizer=kcfi`.
|
|
//
|
|
//@ needs-sanitizer-kcfi
|
|
//@ compile-flags: -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer-kcfi-arity
|
|
|
|
//~? ERROR `-Zsanitizer-kcfi-arity` requires `-Zsanitizer=kcfi`
|
|
#![feature(no_core)]
|
|
#![no_core]
|
|
#![no_main]
|