summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wimplicit-function-declaration-c89-pedantic.c
blob: 5491aea793bf3d6f1f71ff7d79840dca6b61e9c6 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-std=c89 -pedantic-errors -Wimplicit-function-declaration" } */

void f(void) 
{ 
  puts("Hello"); /* { dg-warning "implicit declaration of function" } */
}