summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/friend15.C
blob: 1e271fc3f00663e6a5291172596daea7f33da51b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Origin: PR c++/35109
// { dg-do compile }

void foo()
{
  struct A
  {
    friend class B;
  };
  B::B() {} // { dg-error "has not been declared" }
// { dg-error "expected" "expected" { target *-*-* } 10 }
}