forked from OSchip/llvm-project
PredefinedExpr deserialization test in dependent context.
For commit r219561 - Fix deserialization of PredefinedExpr in dependent context. llvm-svn: 219594
This commit is contained in:
parent
dc69ce32ef
commit
4dcead4bc3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue