summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr67741.c
blob: c0019d04a86bb7fd7f0a6f2e3023e3ddfb8620ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { 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." } */
}