☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
dtor10.C
☽
☼
gcc/testsuite/g++.dg/template/dtor10.C
code
plain
raw
1
// PR c++/71748
2
3
struct A
4
{
5
virtual ~A () {}
6
};
7
8
struct B : public A
9
{
10
virtual ~B () {}
11
};
12
13
template < int > void foo ()
14
{
15
B *b = new B;
16
b->~A ();
17
}
18
19
int main ()
20
{
21
foo < 0 > ();
22
return 0;
23
}