X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fnew3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fnew3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=39aff256a4af1fa4bfeb0849cb2c37ea0d0f0680;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/new3.C b/gcc/testsuite/g++.old-deja/g++.jason/new3.C deleted file mode 100644 index 39aff256..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/new3.C +++ /dev/null @@ -1,37 +0,0 @@ -// PRMS Id: 6037 -// Special g++ Options: -fcheck-new -pedantic - -extern "C" void * malloc (__SIZE_TYPE__); - -int ena = 0; - -struct A { - int i; - A () { i = 2; } - void * operator new (__SIZE_TYPE__ s) - { - if (ena) - return 0; - return malloc (s); - } -}; - -struct B { - int i; - B () { i = 2; } - void * operator new (__SIZE_TYPE__ s) throw() - { - if (ena) - return 0; - return malloc (s); - } -}; - -int main () -{ - ena = 1; - A *ap = new A; - B *bp = new B; - - return ap || bp ; -}