OSDN Git Service

2012-04-13 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / 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 }