aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/spellcheck-identifiers-4a.c
blob: 33a6b4220f49ec9a506371eec1e3befab856880a (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-options "" } */

extern double sqrt (double);

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