Compile address sanitizer test with debuginfo
This makes error-pattern to match regardless of current configuration of `rust.debuginfo-level-tests` in `config.toml`.
This commit is contained in:
parent
2890b37b86
commit
adc422f3d5
1 changed files with 2 additions and 3 deletions
|
|
@ -1,16 +1,15 @@
|
|||
// needs-sanitizer-support
|
||||
// only-x86_64
|
||||
//
|
||||
// compile-flags: -Z sanitizer=address -O
|
||||
// compile-flags: -Z sanitizer=address -O -g
|
||||
//
|
||||
// run-fail
|
||||
// error-pattern: AddressSanitizer: stack-buffer-overflow
|
||||
// error-pattern: 'xs' <== Memory access at offset
|
||||
// error-pattern: 'xs' (line 15) <== Memory access at offset
|
||||
|
||||
#![feature(test)]
|
||||
|
||||
use std::hint::black_box;
|
||||
use std::mem;
|
||||
|
||||
fn main() {
|
||||
let xs = [0, 1, 2, 3];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue