summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-friend.cpp
blob: ea30ddcbd0a814982f35de8db18912f8cb68493f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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(); }
};
OpenPOWER on IntegriCloud