summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor10.C
blob: a6e90542208862d153054cb0009aa946df0a0e68 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/27508
// { dg-do compile }

namespace N
{
    struct A { ~A(); };
}

N::~A () {}  // { dg-error "not a class-name" }