X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fbad-error6.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fbad-error6.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=497a49d8700ea63e23fa4bae63fcc76437980114;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/bad-error6.C b/gcc/testsuite/g++.old-deja/g++.law/bad-error6.C deleted file mode 100644 index 497a49d8..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/bad-error6.C +++ /dev/null @@ -1,26 +0,0 @@ -// Build don't link: -// GROUPS passed bad-errors -typedef __SIZE_TYPE__ size_t; - -class tt { - public: - tt(int); - - private: - void *operator new(size_t a); // Forbid object creation in heap memory. -}; - -void st(const tt&, int); - -void ff(int i, int j) -{ - if( i > 0 ) { - // This work ok. - tt a_tt(i); - st(a_tt, j); - } - else { - // This triggers an error because of private operator new ????. - st(tt(-i), j); - } -}