X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate40.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate40.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a8803920a294e6f6b2bc4bc0fa6a6d359bbfa1c8;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template40.C b/gcc/testsuite/g++.old-deja/g++.jason/template40.C deleted file mode 100644 index a8803920..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/template40.C +++ /dev/null @@ -1,19 +0,0 @@ -// PRMS id: 11315 -// Bug: g++ doesn't recognize the copy ctor for Array. - -template -class Array { -public: - Array(int sz=12) - : ia (new Type[sz]), size(sz) {} - ~Array() { delete[] ia;} - Array(const Array& r) : size(0) {} // just for testing -private: - Type *ia; - int size; -}; - -int main(int argc, char *argv[]) -{ - Array ia; // looping occurs on this line -}