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.
7 double imag (const DComplex&);
11 friend double imag(const DComplex& a); // Not injected, no warning
16 friend float imag(const FComplex& a); // { dg-warning "is visible"
25 // { dg-warning "ffriend-injection.* is deprecated" "" { target *-*-* } cc1plus: }