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++.eh/] [vbase2.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// Origin: Mark Mitchell <mark@codesourcery.com>
int i;
struct A
{
A () { i++; }
~A () { i--; }
};
struct B : public virtual A
{
B () { throw 1; }
};
struct D: public B, virtual public A
{
};
void f()
{
D d;
}
int main ()
{
try {
f();
} catch (int) {
}
return i;
}
Go to most recent revision | Compare with Previous | Blame | View Log