xref: /minix3/external/bsd/llvm/dist/clang/test/Index/Inputs/redeclarations.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc class X
2*f4a2713aSLionel Sambuc {
3*f4a2713aSLionel Sambuc   friend class A;
4*f4a2713aSLionel Sambuc };
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc template <typename T1, typename T2>
8*f4a2713aSLionel Sambuc class B
9*f4a2713aSLionel Sambuc {
10*f4a2713aSLionel Sambuc };
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc template <class T>
13*f4a2713aSLionel Sambuc struct C
14*f4a2713aSLionel Sambuc {
15*f4a2713aSLionel Sambuc };
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc class D
18*f4a2713aSLionel Sambuc {
19*f4a2713aSLionel Sambuc     B<D, class A> x;
20*f4a2713aSLionel Sambuc     friend struct C<A>;
21*f4a2713aSLionel Sambuc };
22