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

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