* ru.po: Update.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / static1.C
blob2c6f6bd4da149cf69dc8e38bf3524862a5bf3992
1 // { dg-do run  }
2 // PRMS id: 6863
4 extern "C" int printf(const char *, ...);
5 extern "C" void abort();
7 enum ENUM {E1=0, E2 };
8 int d;
10 class AAA{
11 public:
12  AAA() {a = new char[10];printf("constructor AAA() called\n");}
13  AAA(int) {printf("constructor AAA(int) called\n");}
14  ~AAA(){ printf("destructor ~AAA() called\n"); d = 1; }
15  operator int () { return 1;}
16  char *a;
17  int i;
20 struct sentinel {
21   ~sentinel () { if (d == 0) abort (); }
22 } s;
24 /* forward decl here causes gcc not to execute ct and dt for arr1 */
25 extern AAA arr1[];
27 AAA arr1[] = {(int)E1 };
29 int main()
31   return 0;