freebsd-nq/test/Parser/cxx-friend.cpp
2009-06-02 17:58:47 +00:00

18 lines
213 B
C++

// 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(); }
};