2 // Origin: Mark Mitchell <mark@codesourcery.com>
3 // This test case checks that the return value optimization works for
8 extern "C" void abort();
9 extern "C" int printf (const char *, ...);
18 A () { as[i++] = this; }
19 A (const A&) { as[i++] = this; }
20 ~A() { if (i == 0 || as[--i] != this) abort(); }