Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / Wobjsize-1.c
blob17e554b2a36ebfff513f4bca1bd266fa4bed61c6
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" "" { target *-*-* } 0 } */
15 /* { dg-message "inlined from" "" { target *-*-* } 0 } */