Retro68/gcc/gcc/testsuite/gcc.dg/spellcheck-identifiers-4.c
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

11 lines
332 B
C

/* { 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 } */
}