aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/spellcheck-stdlib-2.c
blob: 4762e2ddbbdbeb74317b663d8c21e02b50ddee16 (plain)
1
2
3
4
5
6
7
8
/* { dg-options "-Wimplicit-function-declaration" } */

/* Missing <string.h>.  */
void test_string_h (void)
{
  strerror (0); /* { dg-error "implicit declaration of function 'strerror'" } */
  /* { dg-message "'strerror' is defined in header '<string.h>'" "" { target *-*-* } .-1 } */
}