PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / dtor10.C
blob4307a683b71cd457047b6e4642ddc070757d1195
1 // PR c++/71748
3 struct A
4
5   virtual ~A () {}
6 };
8 struct B : public A
9
10   virtual ~B () {}
13 template < int > void foo ()
14
15   B *b = new B;
16   b->~A ();
19 int main ()
20
21   foo < 0 > ();
22   return 0;