Debian Codegraph @

gcc/testsuite/g++.dg/template/dtor10.C

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 }