blob: c0019d04a86bb7fd7f0a6f2e3023e3ddfb8620ca [file] [log] [blame]
/* { dg-do compile } */
struct singlecomplex { float real, imag ; } ;
struct doublecomplex { double real, imag ; } ;
struct extendedcomplex { long double real, imag ; } ;
extern double cabs();
float cabsf(fc)
struct singlecomplex fc; /* { dg-warning "doesn't match" } */
{
struct doublecomplex dc ;
dc.real=fc.real; dc.imag=fc.imag;
return (float) cabs(dc); /* { dg-warning "incompatible type for argument 1 of .cabs." } */
}