4 extern "C" int printf(const char *, ...);
5 extern "C" void abort();
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;}
21 ~sentinel () { if (d == 0) abort (); }
24 /* forward decl here causes gcc not to execute ct and dt for arr1 */
27 AAA arr1[] = {(int)E1 };