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++.other
/
dtor9.C
blob
0df88a828ccc31714b8c937bf7e221cfbf28d536
1
// { dg-do run }
2
int i;
3
4
struct CC
5
{
6
virtual ~CC () { ++i; }
7
};
8
9
class BB : virtual public CC
10
{
11
};
12
13
class AA : public virtual BB
14
{
15
};
16
17
int main ()
18
{
19
{
20
AA xx;
21
}
22
if (i != 1)
23
return 1;
24
}