diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template31.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template31.C | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template31.C b/gcc/testsuite/g++.old-deja/g++.jason/template31.C new file mode 100644 index 000000000..81d696f2f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template31.C @@ -0,0 +1,40 @@ +// { dg-do run } +// PRMS Id: 8569 + +#include <iostream> +#include <vector> +#include <cstdlib> + +using std::vector; + +class Component { + int george; + char mabel[128]; +}; +class CopyMe { +public: + CopyMe(){;} +private: + vector<Component> strvec; +}; + +class IncludeIt { +public: + IncludeIt() {} + ~IncludeIt() {} + IncludeIt(const IncludeIt& i) { + myStrvec = i.myStrvec; + } + IncludeIt& operator=(const IncludeIt& i) { + myStrvec = i.myStrvec; + return *this; + } +private: + CopyMe myStrvec; +}; + +int main(int argc, char**argv) { + IncludeIt foo; + IncludeIt* bar; + std::exit(0); +} |