[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / friend-out-of-line.cpp
blobab75a4f8ca44680d7bf92264671bc67caeac6b0f
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // <rdar://problem/10204947>
5 namespace N {
6 class X;
7 };
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;