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
Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux
[official-gcc.git]
/
libvtv
/
testsuite
/
libvtv.cc
/
derived-main.cpp
blob
0933ff696210d7da4803977ea304a70cc66bd5dc
1
// { dg-do run }
2
3
#include
"lib.h"
4
5
struct
Derived
:
public
Base
6
{
7
virtual
~
Derived
()
8
{
printf
(
"In Derived destructor
\n
"
); }
9
};
10
11
int
main
()
12
{
13
Derived
*
d
=
new
Derived
;
14
Destroy
(
d
);
15
Base
*
pp
=
GetPrivate
();
16
delete
pp
;
// Virtual call #2
17
}
18