X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fstatic1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fstatic1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=8c5bdff359b2b44825b1b28b62d55b3e3a596862;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/static1.C b/gcc/testsuite/g++.old-deja/g++.jason/static1.C deleted file mode 100644 index 8c5bdff3..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/static1.C +++ /dev/null @@ -1,31 +0,0 @@ -// PRMS id: 6863 - -extern "C" int printf(const char *, ...); -extern "C" void abort(); - -enum ENUM {E1=0, E2 }; -int d; - -class AAA{ -public: - AAA() {a = new char[10];printf("constructor AAA() called\n");} - AAA(int) {printf("constructor AAA(int) called\n");} - ~AAA(){ printf("destructor ~AAA() called\n"); d = 1; } - operator int () { return 1;} - char *a; - int i; -}; - -struct sentinel { - ~sentinel () { if (d == 0) abort (); } -} s; - -/* forward decl here causes gcc not to execute ct and dt for arr1 */ -extern AAA arr1[]; - -AAA arr1[] = {(int)E1 }; - -int main() -{ - return 0; -}