(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
virtual2.C
// PR c++/51137

struct A {};

template<int> struct B : virtual A
{
  void foo()
  {
    (new A(*this))->A::~A();
  }
};