dee4e02102
Adds initial support for DataFlowSanitizer to the Rust compiler. It currently supports `-Zsanitizer-dataflow-abilist`. Additional options for it can be passed to LLVM command line argument processor via LLVM arguments using `llvm-args` codegen option (e.g., `-Cllvm-args=-dfsan-combine-pointer-labels-on-load=false`).
11 lines
209 B
Rust
11 lines
209 B
Rust
// Verifies that functions are instrumented.
|
|
//
|
|
//@ needs-sanitizer-dataflow
|
|
//@ compile-flags: -Copt-level=0 -Zsanitizer=dataflow
|
|
|
|
#![crate_type="lib"]
|
|
|
|
pub fn foo() {
|
|
}
|
|
// CHECK: define{{.*}}foo{{.*}}.dfsan
|