Skip to content

Commit

Permalink
Rollup merge of #69800 - tmiasko:address-g, r=nikic
Browse files Browse the repository at this point in the history
Compile address sanitizer test with debuginfo

This makes error-pattern to match regardless of current
configuration of `rust.debuginfo-level-tests` in `config.toml`.
  • Loading branch information
Centril authored Mar 8, 2020
2 parents e2617a9 + adc422f commit cfb2f95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/ui/sanitize/address.rs
Original file line number Diff line number Diff line change
@@ -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];
Expand Down

0 comments on commit cfb2f95

Please sign in to comment.