summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/spellcheck-identifiers-4.c
blob: f9b7d8d0cab89bffd04fd7d9be2616241e184bee (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-options "-Wimplicit-function-declaration" } */

extern double sqrt (double);

void test (float pf, float inff)
{
  assert (pf == inff); /* { dg-bogus "sqrt" } */
  /* { dg-warning "implicit declaration of function 'assert'" "" { target *-*-* } .-1 } */
  /* { dg-message "header '<assert.h>'" "" { target *-*-* } .-2 } */
}