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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
vbase2.C
blob
812b54764e533d263596cea29521e510f1936d24
1
// { dg-do run }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
int i;
5
6
struct A
7
{
8
~A ();
9
};
10
11
A::~A () {
12
i = 1;
13
}
14
15
struct B : virtual public A {
16
};
17
18
struct C {
19
C ();
20
21
B b;
22
};
23
24
C::C () {
25
throw 3;
26
}
27
28
int main ()
29
{
30
try {
31
C c;
32
} catch (...) {
33
}
34
35
if (i != 1)
36
return 1;
37
}