Skip to content

Commit cfb2f95

Browse files
authored
Rollup merge of #69800 - tmiasko:address-g, r=nikic
Compile address sanitizer test with debuginfo This makes error-pattern to match regardless of current configuration of `rust.debuginfo-level-tests` in `config.toml`.
2 parents e2617a9 + adc422f commit cfb2f95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/ui/sanitize/address.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
// needs-sanitizer-support
22
// only-x86_64
33
//
4-
// compile-flags: -Z sanitizer=address -O
4+
// compile-flags: -Z sanitizer=address -O -g
55
//
66
// run-fail
77
// error-pattern: AddressSanitizer: stack-buffer-overflow
8-
// error-pattern: 'xs' <== Memory access at offset
8+
// error-pattern: 'xs' (line 15) <== Memory access at offset
99

1010
#![feature(test)]
1111

1212
use std::hint::black_box;
13-
use std::mem;
1413

1514
fn main() {
1615
let xs = [0, 1, 2, 3];

0 commit comments

Comments
 (0)