(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Werror-implicit-function-declaration.c
       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" } */
       8  }