1// { dg-do assemble  }
2// { dg-options "-ffriend-injection" }
3// Bug: g++ ignores the :: qualification and dies trying to treat an integer
4// variable as a list of functions.
5
6class DComplex {
7public:
8  friend  double   imag(const DComplex& a);
9};
10
11class FComplex {
12public:
13  friend  float    imag(const FComplex& a);
14};
15
16void
17scnrm2(FComplex cx[])
18{
19  int imag;
20  ::imag( cx[0] );
21}
22