1 /* Test the legacy option -Werror-implicit-function-declaration */ 2 /* { dg-do compile } */ 3 /* { dg-options "-std=c89 -Werror-implicit-function-declaration" } */ 4 /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */ f(void)5void f(void) 6 { 7 puts("Hello"); /* { dg-error "implicit declaration of function" } */ 8 } 9