1/* { dg-do compile } */ 2/* { dg-options "-O2 -Wall" } */ 3 4#include "Wobjsize-1.h" 5 6char buf[6]; 7int main(int argc, char **argv) 8{ 9 strcpy (buf,"hello "); 10 return 0; 11} 12 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 } */ 16