We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2890b37 commit adc422fCopy full SHA for adc422f
src/test/ui/sanitize/address.rs
@@ -1,16 +1,15 @@
1
// needs-sanitizer-support
2
// only-x86_64
3
//
4
-// compile-flags: -Z sanitizer=address -O
+// compile-flags: -Z sanitizer=address -O -g
5
6
// run-fail
7
// error-pattern: AddressSanitizer: stack-buffer-overflow
8
-// error-pattern: 'xs' <== Memory access at offset
+// error-pattern: 'xs' (line 15) <== Memory access at offset
9
10
#![feature(test)]
11
12
use std::hint::black_box;
13
-use std::mem;
14
15
fn main() {
16
let xs = [0, 1, 2, 3];
0 commit comments