summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/hidden-class6.C
blob: 96425353911f27761dfb6d72c81efdc11f356358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }

// Origin: Jay Cox <jaycox@gimp.org>

// PR c++/1016: Name lookup for injected friend class

class B;

namespace N {
  class A {
    friend class B;
    B* b;
  };
}