summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor6.C
blob: 3333161c39986feb6f0731f807bb546834210956 (plain)
1
2
3
4
5
6
7
8
// PR c++/25638

struct A { ~A(); }; // { dg-error "candidate" }  

struct B : A
{
  template<int> friend A::~A(); // { dg-error "match" }
};