summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx-templates.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/cxx-templates.h')
-rw-r--r--clang/test/PCH/cxx-templates.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-templates.h b/clang/test/PCH/cxx-templates.h
index e672b0b3873..00064aeefa5 100644
--- a/clang/test/PCH/cxx-templates.h
+++ b/clang/test/PCH/cxx-templates.h
@@ -269,3 +269,10 @@ template<typename T> struct ContainsDoNotDeserialize2 {
};
template<typename T> int ContainsDoNotDeserialize<T>::doNotDeserialize = 0;
template<typename T> void ContainsDoNotDeserialize2<T>::doNotDeserialize() {}
+
+
+template<typename T> void DependentSpecializedFunc(T x) { x.foo(); }
+template<typename T> class DependentSpecializedFuncClass {
+ void foo() {}
+ friend void DependentSpecializedFunc<>(DependentSpecializedFuncClass);
+};
OpenPOWER on IntegriCloud