blob: f1148afdd065dafcecaa7918da1157c3a3ef2385 [file] [log] [blame]
// Origin: Mark Mitchell <mitchell@codesourcery.com>
// Special g++ Options: -O2
int i;
int j;
struct A
{
A ();
A (const A&);
~A ();
};
A::A ()
{
++i;
}
A::A (const A&)
{
++i;
}
A::~A ()
{
--i;
}
A f ()
{
return A ();
}
void g (const A&)
{
}
int main ()
{
g (f ());
return i;
}