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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
destruct2.C
blob
a28860f93686110d67778f2699b29bcf0a3858f1
1
// { dg-do assemble }
2
// PRMS Id: 4342
3
// Bug: g++ does not massage things enough to allow calling ~X().
4
5
struct X
6
{
7
virtual ~X ();
8
};
9
10
struct Y : public X
11
{};
12
13
struct Z : public Y, public X
14
{}; // { dg-warning "" }
15
16
void foo ()
17
{
18
Z* f = new Z;
19
delete f; // { dg-bogus "" }
20
}