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
PR c++/46124
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr45934.C
1
/* { dg-do run } */
2
3
extern "C" void abort ();
4
5
struct B *b;
6
7
struct B
8
{
9
virtual void f () { }
10
~B() { b->f(); }
11
};
12
13
struct D : public B
14
{
15
virtual void f () { abort (); }
16
};
17
18
int main ()
19
{
20
D d;
21
b = &d;
22
return 0;
23
}