URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec3.C] - Rev 12
Compare with Previous | Blame | View Log
// PR c++/4381
// Test that exception-specs work properly for classes with virtual bases.
// { dg-do run }
class Base {};
struct A : virtual public Base
{
A() {}
};
struct B {};
void func() throw (B,A)
{
throw A();
}
int main(void)
{
try { func(); }
catch (A& a) { }
}