aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/friend.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-26 20:57:03 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-26 20:57:03 +0000
commitfc9cd61f2372cd8f43f0d92be14fa75778de6be6 (patch)
tree0206fae25b7862555981ad63fbb2d03fdfd11602 /test/SemaTemplate/friend.cpp
parente7c8cb6b2728aa98258288d221b09bc66cc05543 (diff)
Simplify the handling of non-dependent friend class template
specializations such as: friend class std::vector<int>; by using the same code path as explicit specializations, customized to reference an existing ClassTemplateSpecializationDecl (or build a new "undeclared" one). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/friend.cpp')
-rw-r--r--test/SemaTemplate/friend.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaTemplate/friend.cpp b/test/SemaTemplate/friend.cpp
index cd74cb1b36..2729952386 100644
--- a/test/SemaTemplate/friend.cpp
+++ b/test/SemaTemplate/friend.cpp
@@ -8,3 +8,7 @@ template<typename T> struct A {
void f() {
A<int>::B b;
}
+
+struct C0 {
+ friend struct A<int>;
+};