aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template31.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template31.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/template31.C38
1 files changed, 38 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 00000000000..8870bf4ec4e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template31.C
@@ -0,0 +1,38 @@
+// PRMS Id: 8569
+
+#include <iostream.h>
+#include <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;
+ }
+private:
+ CopyMe myStrvec;
+};
+
+main(int argc, char**argv) {
+ IncludeIt foo;
+ IncludeIt* bar;
+ exit(0);
+}
+
+template class __malloc_alloc_template<0>;
+template class __default_alloc_template<false, 0>;