PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-implicit-function-declaration.c
blob3261fc0d942daee629f543fb10d69331004a0996
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 } */
5 void f(void)
6 {
7 puts("Hello"); /* { dg-error "implicit declaration of function" } */