OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec3.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/4381
2
// Test that exception-specs work properly for classes with virtual bases.
3
 
4
// { dg-do run }
5
 
6
class Base {};
7
 
8
struct A : virtual public Base
9
{
10
  A() {}
11
};
12
 
13
struct B {};
14
 
15
void func() throw (B,A)
16
{
17
  throw A();
18
}
19
 
20
int main(void)
21
{
22
  try { func(); }
23
  catch (A& a) { }
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.