13 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4namespace N {5 class X;6};7 8class N::X {9 template<typename T> friend const T& f(const X&);10 friend const int& g(const X&);11 friend class Y;12};13 1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4namespace N {5 class X;6};7 8class N::X {9 template<typename T> friend const T& f(const X&);10 friend const int& g(const X&);11 friend class Y;12};13