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
Fortran/OpenMP: Middle-end support for mapping of DT with allocatable components
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
vbase2.C
blob
eaae9d93ace8ecc11d3b8acb1e6f2a399a081324
1
// { dg-do run }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
int i;
5
6
struct A
7
{
8
A () { i++; }
9
~A () { i--; }
10
};
11
12
struct B : public virtual A
13
{
14
B () { throw 1; }
15
};
16
17
struct D: public B, virtual public A
18
{
19
};
20
21
void f()
22
{
23
D d;
24
}
25
26
int main ()
27
{
28
try {
29
f();
30
} catch (int) {
31
}
32
33
return i;
34
}
35