forked from OSchip/llvm-project
Add test coverage for serialization of dependent function template specializations.
llvm-svn: 184275
This commit is contained in:
parent
88e0f618ea
commit
f796cf1ade
|
@ -85,3 +85,7 @@ namespace rdar13135282 {
|
|||
__mt_alloc<> mt = __mt_alloc<>();
|
||||
}
|
||||
}
|
||||
|
||||
void CallDependentSpecializedFunc(DependentSpecializedFuncClass<int> &x) {
|
||||
DependentSpecializedFunc(x);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue