]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/friend-out-of-line.cpp
Vendor import of clang trunk r162107:
[FreeBSD/FreeBSD.git] / test / SemaCXX / friend-out-of-line.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 // <rdar://problem/10204947>
4 namespace N {
5   class X;
6 };
7
8 class N::X {
9   template<typename T> friend const T& f(const X&);
10   friend const int& g(const X&);
11   friend class Y;
12 };