PredefinedExpr deserialization test in dependent context.

For commit r219561 - Fix deserialization of PredefinedExpr in dependent context.

llvm-svn: 219594
This commit is contained in:
Alexey Bataev 2014-10-13 03:27:35 +00:00
parent dc69ce32ef
commit 4dcead4bc3
1 changed files with 16 additions and 1 deletions

View File

@ -74,7 +74,17 @@ struct ClassBlockConstr {
}
};
int main() {
template <class T>
class FuncTemplate {
const char *Func;
public:
FuncTemplate() : Func(__func__) {}
const char *getFunc() const { return Func; }
};
int
main() {
int a;
ClassInTopLevelNamespace topLevelNamespace;
ClassBlockConstr classBlockConstr;
@ -86,5 +96,10 @@ int main() {
t.classTemplateFunction(a);
return 0;
}
#else
void Foo() {
FuncTemplate<int> FTi;
(void)FTi.getFunc();
}
#endif