OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
visibility28.C
1
// Build don't link:
2
// GROUPS passed visibility
3
extern "C" int printf( const char *, ...);
4
5
class B {
6
public:
7
B() { };
8
virtual ~B() { printf( "B::~B\n"); };
9
};
10
11
class D : public B {
12
public:
13
virtual ~D() { printf( "D::~D\n"); };
14
void operator = ( int i) { this->~B(); }// ERROR - D has no ~B part to it
15
};
16
17
int
18
main()
19
{
20
D * pd = new D;
21
B * pb = pd;
22
delete pb;
23
return 0;
24
};