mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
20 lines
543 B
Rust
20 lines
543 B
Rust
// AddressSanitizer, LeakSanitizer are good to be inconsistent (they are not a target modifiers)
|
|
|
|
//@ revisions: wrong_address_san wrong_leak_san
|
|
|
|
//@[wrong_address_san] needs-sanitizer-address
|
|
//@[wrong_leak_san] needs-sanitizer-leak
|
|
|
|
//@ aux-build:no-sanitizers.rs
|
|
//@ compile-flags: -Cpanic=abort -C target-feature=-crt-static
|
|
|
|
//@[wrong_address_san] compile-flags: -Zsanitizer=address
|
|
//@[wrong_leak_san] compile-flags: -Zsanitizer=leak
|
|
//@ check-pass
|
|
|
|
#![feature(no_core)]
|
|
#![crate_type = "rlib"]
|
|
#![no_core]
|
|
|
|
extern crate no_sanitizers;
|