repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* g++.dg/eh/new1.C: XFAIL on AIX.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
eh
/
spec3.C
blob
20bcfc33ee84e004eb56ff2b13241809a121e387
1
// 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
}