2 // Bug: We were failing to destroy the temporary A passed to the
3 // constructor for b[0] before going on to construct b[1].
7 extern "C" int printf (const char *, ...);
14 A() { printf ("A()\n"); if (c++) r = 1; }
15 A(const A&) { printf ("A(const A&)\n"); ++c; }
16 ~A() { printf ("~A()\n"); --c; }
21 B(int, const A& = A()) { printf ("B()\n"); }