2011-11-04 00:37:14 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-11-04 00:37:14 +08:00
|
|
|
|
|
|
|
// <rdar://problem/10204947>
|
|
|
|
namespace N {
|
|
|
|
class X;
|
|
|
|
};
|
|
|
|
|
|
|
|
class N::X {
|
|
|
|
template<typename T> friend const T& f(const X&);
|
|
|
|
friend const int& g(const X&);
|
|
|
|
friend class Y;
|
|
|
|
};
|