URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [cleanup4.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-O2 -fno-exceptions" }
// Origin: Jakub Jelinek <jakub@redhat.com>
class foo
{
public:
foo ();
~foo ();
};
class bar
{
public:
bar ();
bar (const foo&);
};
int i;
foo f ();
inline bar x ()
{
switch (i)
{
case 0: return bar (f ());
default: return bar ();
}
}
bar y ()
{
return x ();
}