2009-05-06 12:46:28 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only %s
|
|
|
|
|
|
|
|
class C {
|
|
|
|
friend class D;
|
|
|
|
};
|
2009-05-12 06:25:03 +08:00
|
|
|
|
|
|
|
class A {
|
|
|
|
public:
|
|
|
|
void f();
|
|
|
|
};
|
|
|
|
|
|
|
|
class B {
|
|
|
|
// 'A' here should refer to the declaration above.
|
|
|
|
friend class A;
|
|
|
|
|
|
|
|
void f(A *a) { a->f(); }
|
|
|
|
};
|