diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/opeq2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/opeq2.C | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/opeq2.C b/gcc/testsuite/g++.old-deja/g++.jason/opeq2.C new file mode 100644 index 00000000000..9e91ab3ae0f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/opeq2.C @@ -0,0 +1,26 @@ +// Bug: default operator= is not being generated properly. +// PRMS Id: 3525 +// Build don't link: + +struct ccUnwind +{ + ccUnwind& operator = (const ccUnwind&); +}; + +struct ccEllipseUnit +{ + ccEllipseUnit () {} +}; + +struct ccEllipse : ccUnwind +{ + ccEllipse (); + ccEllipse (const ccEllipseUnit&); + +}; + +void foo () +{ + ccEllipse e; + e = ccEllipseUnit(); // gets bogus error - assignment not defined +} |