summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/friend3.C
blob: ce872e555ff87bb1ec884dbdf70765a79a9d0433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/22293
// Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

struct A
{
  friend ~A();  // { dg-error "qualified name" }
};

struct B
{
  friend ~A();  // { dg-error "qualified name" }
};