[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Wobjsize-1.c
blobe80c8add3bbf3d5a07c7baeae25159c5e251d277
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall -Wno-array-bounds" } */
4 #include "Wobjsize-1.h"
6 char buf[6];
7 /* { dg-warning "writing" "" { target *-*-* } .-1 } */
9 int main(int argc, char **argv)
11 strcpy (buf,"hello ");
12 return 0;
15 /* { dg-message "file included" "included" { target *-*-* } 0 } */
16 /* { dg-message "inlined from" "inlined" { target *-*-* } 0 } */