1 // Origin: Mark Mitchell <mark@codesourcery.com>
2 // This test case checks that the return value optimization works for
5 // xfailed because empty classes clobbering what they overlay as the
6 // backend treats them as single byte objects. See bug 4222
7 // execution test - XFAIL *-*-*
9 extern "C" void abort();
10 extern "C" int printf (const char *, ...);
19 A () { as[i++] = this; }
20 A (const A&) { as[i++] = this; }
21 ~A() { if (i == 0 || as[--i] != this) abort(); }