diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping15.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.jason/scoping15.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping15.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping15.C new file mode 100755 index 0000000..bfebf24 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping15.C @@ -0,0 +1,20 @@ +// Bug: g++ ignores the :: qualification and dies trying to treat an integer +// variable as a list of functions. +// Build don't link: + +class DComplex { +public: + friend double imag(const DComplex& a); +}; + +class FComplex { +public: + friend float imag(const FComplex& a); +}; + +void +scnrm2(FComplex cx[]) +{ + int imag; + ::imag( cx[0] ); +} |