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 000000000..2d448a23c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/opeq2.C @@ -0,0 +1,26 @@ +// { dg-do assemble } +// Bug: default operator= is not being generated properly. +// PRMS Id: 3525 + +struct ccUnwind +{ + ccUnwind& operator = (const ccUnwind&); +}; + +struct ccEllipseUnit +{ + ccEllipseUnit () {} +}; + +struct ccEllipse : ccUnwind +{ + ccEllipse (); + ccEllipse (const ccEllipseUnit&); + +}; + +void foo () +{ + ccEllipse e; + e = ccEllipseUnit(); // { dg-bogus "" } assignment not defined +} |