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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
vbase1.C
blob
96766d6248a52cfe8a2eb3f76c831e9c38b2d872
1
// { dg-do run }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
int i;
5
int j;
6
7
struct B
8
{
9
B() { i = 1; }
10
~B() { j = 7; }
11
};
12
13
struct D : virtual public B {
14
D () { throw 3; }
15
};
16
17
int main ()
18
{
19
try {
20
D d;
21
} catch (int) {
22
if (i != 1 || j != 7)
23
return 1;
24
}
25
}