Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr40340-2.c
bloba0d6e084e7397caf0c4a806be0270b6cda9ece59
1 /* PR middle-end/40340 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wall -Wno-system-headers" } */
5 #include "pr40340.h"
7 int
8 main (void)
10 char buf[4];
11 memset (buf, 0, 6);
12 return 0;
15 /* { dg-warning "will always overflow destination buffer" "" { target *-*-* } 10 } */
16 /* { dg-message "file included" "In file included" { target *-*-* } 0 } */