1 /* PR sanitizer/65280 */
3 /* { dg-options "-fsanitize=bounds" } */
4 /* Origin: Martin Uecker <uecker@eecs.berkeley.edu> */
7 foo (volatile int (*a
)[3])
19 foo ((int (*)[3]) &a
);
23 /* { dg-output "index 3 out of bounds for type 'int \\\[3\\\]'\[^\n\r]*(\n|\r\n|\r)" } */
24 /* { dg-output "\[^\n\r]*index 4 out of bounds for type 'int \\\[3\\\]'" } */