Add test coverage for serialization of dependent function template specializations.

llvm-svn: 184275
This commit is contained in:
Eli Friedman 2013-06-19 01:38:21 +00:00
parent 88e0f618ea
commit f796cf1ade
2 changed files with 11 additions and 0 deletions

View File

@ -85,3 +85,7 @@ namespace rdar13135282 {
__mt_alloc<> mt = __mt_alloc<>();
}
}
void CallDependentSpecializedFunc(DependentSpecializedFuncClass<int> &x) {
DependentSpecializedFunc(x);
}

View File

@ -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);
};