summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/friend4.C
blob: 537643df954924f10dcf1bbf80f963bda539b02b (plain)
1
2
3
4
5
6
7
8
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// Misleading diagnostic

struct A
{
  friend void A::foo();  // { dg-error "implicitly friends" }
  friend A::~A();        // { dg-error "implicitly friends" }
};