2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / scoping15.C
blob5485b29b32a3af8a1b5540a1700ac7b0c4150ccf
1 // { dg-do assemble  }
2 // Bug: g++ ignores the :: qualification and dies trying to treat an integer
3 // variable as a list of functions.
5 class DComplex {
6 public:
7   friend  double   imag(const DComplex& a);
8 };
10 class FComplex {
11 public:
12   friend  float    imag(const FComplex& a);
15 void
16 scnrm2(FComplex cx[])
18   int imag;
19   ::imag( cx[0] );