Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / Wobjsize-1.c
blob291cfb9be91889a220f99e164696f4f84857bedb
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
4 #include "Wobjsize-1.h"
6 char buf[6];
7 int main(int argc, char **argv)
9 strcpy (buf,"hello ");
10 return 0;
13 /* { dg-warning "will always overflow destination buffer" "" { target *-*-* } 6 } */
14 /* { dg-message "file included" "included" { target *-*-* } 0 } */
15 /* { dg-message "inlined from" "inlined" { target *-*-* } 0 } */