r219594 - PredefinedExpr deserialization test in dependent context.
Alexey Bataev
a.bataev at hotmail.com
Sun Oct 12 20:27:35 PDT 2014
Author: abataev
Date: Sun Oct 12 22:27:35 2014
New Revision: 219594
URL: http://llvm.org/viewvc/llvm-project?rev=219594&view=rev
Log:
PredefinedExpr deserialization test in dependent context.
For commit r219561 - Fix deserialization of PredefinedExpr in dependent context.
Modified:
cfe/trunk/test/CodeGenCXX/predefined-expr-cxx14.cpp
Modified: cfe/trunk/test/CodeGenCXX/predefined-expr-cxx14.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/predefined-expr-cxx14.cpp?rev=219594&r1=219593&r2=219594&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/predefined-expr-cxx14.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/predefined-expr-cxx14.cpp Sun Oct 12 22:27:35 2014
@@ -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
More information about the cfe-commits
mailing list