diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-01 06:01:33 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-01 06:01:33 +0000 |
commit | 6df33daefc850436230de329ceba2426b67f303b (patch) | |
tree | 71fcbb94fe174827a5b7315aba6879343d9f38b8 /gcc/testsuite | |
parent | baa633bb7b4b3d477b37d3690ad64eaae23ee0bd (diff) | |
download | gcc-6df33daefc850436230de329ceba2426b67f303b.tar.gz |
* decl.c (finish_destructor_body): Use the base destructor when
destroying virtual bases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/dtor9.C | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dtor9.C b/gcc/testsuite/g++.old-deja/g++.other/dtor9.C new file mode 100644 index 00000000000..6f0d5ac144b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/dtor9.C @@ -0,0 +1,23 @@ +int i; + +struct CC +{ + virtual ~CC () { ++i; } +}; + +class BB : virtual public CC +{ +}; + +class AA : public virtual BB +{ +}; + +int main () +{ + { + AA xx; + } + if (i != 1) + return 1; +} |