xref: /aosp_15_r20/external/clang/test/SemaCXX/friend-out-of-line.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 // <rdar://problem/10204947>
5 namespace N {
6   class X;
7 };
8 
9 class N::X {
10   template<typename T> friend const T& f(const X&);
11   friend const int& g(const X&);
12   friend class Y;
13 };
14