1 /* Test recovery mode. */
3 /* { dg-options "-fsanitize-recover=address" } */
4 /* { dg-set-target-env-var ASAN_OPTIONS "halt_on_error=false" } */
12 memset(x
, 0, ten
+ 1);
13 asm volatile ("" : : : "memory");
14 volatile int res
= x
[ten
];
20 /* { dg-output "WRITE of size 11 at 0x\[0-9a-f\]+ thread T0\[^\n\r]*(\n|\r\n|\r).*" } */
21 /* { dg-output "\[^\n\r]*READ of size 1 at 0x\[0-9a-f\]+ thread T0\[^\n\r]*(\n|\r\n|\r).*" } */
22 /* { dg-output "\[^\n\r]*WRITE of size 1 at 0x\[0-9a-f\]+ thread T0\[^\n\r]*(\n|\r\n|\r).*" } */
23 /* { dg-output "\[^\n\r]*READ of size 1 at 0x\[0-9a-f\]+ thread T0\[^\n\r]*(\n|\r\n|\r).*" } */