summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c')
-rw-r--r--gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c b/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c
index 05b8c02968a..3261fc0d942 100644
--- a/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c
+++ b/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c
@@ -1,6 +1,7 @@
+/* Test the legacy option -Werror-implicit-function-declaration */
/* { dg-do compile } */
/* { dg-options "-std=c89 -Werror-implicit-function-declaration" } */
-
+/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
void f(void)
{
puts("Hello"); /* { dg-error "implicit declaration of function" } */