X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Foperators28.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Foperators28.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=3600fb274183b14c5efc5db5130af81429ceffa4;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators28.C b/gcc/testsuite/g++.old-deja/g++.law/operators28.C deleted file mode 100644 index 3600fb27..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/operators28.C +++ /dev/null @@ -1,30 +0,0 @@ -// Build don't link: -// GROUPS passed operators -#include -#include - -class new_test -{ - int type; -public: - void* operator new(size_t sz, int count, int type); -}; - -void* new_test::operator new(size_t sz, int count, int type) -{ - void *p; - - printf("%d %d %d\n", sz, count, type); - - p = new char[sz * count]; - ((new_test *)p)->type = type; - return p; -}; - -int main() -{ - new_test *test; - int count = 13; - - test = new(count, 1) new_test; -};