hanchenye-llvm-project/clang/test/Parser/cxx-friend.cpp

18 lines
213 B
C++
Raw Normal View History

// RUN: clang-cc -fsyntax-only %s
class C {
friend class D;
};
class A {
public:
void f();
};
class B {
// 'A' here should refer to the declaration above.
friend class A;
void f(A *a) { a->f(); }
};