summaryrefslogtreecommitdiff
path: root/clang/test/Index/Inputs/redeclarations.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/Inputs/redeclarations.h')
-rw-r--r--clang/test/Index/Inputs/redeclarations.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/Index/Inputs/redeclarations.h b/clang/test/Index/Inputs/redeclarations.h
new file mode 100644
index 0000000..7f0d7ae
--- /dev/null
+++ b/clang/test/Index/Inputs/redeclarations.h
@@ -0,0 +1,21 @@
+class X
+{
+ friend class A;
+};
+
+
+template <typename T1, typename T2>
+class B
+{
+};
+
+template <class T>
+struct C
+{
+};
+
+class D
+{
+ B<D, class A> x;
+ friend struct C<A>;
+};