[cfe-commits] r80045 - /cfe/trunk/test/SemaTemplate/nested-template.cpp

Douglas Gregor dgregor at apple.com
Tue Aug 25 15:53:07 PDT 2009


Author: dgregor
Date: Tue Aug 25 17:53:07 2009
New Revision: 80045

URL: http://llvm.org/viewvc/llvm-project?rev=80045&view=rev
Log:
Test out-of-line definitions of static data members of nested member class templates

Modified:
    cfe/trunk/test/SemaTemplate/nested-template.cpp

Modified: cfe/trunk/test/SemaTemplate/nested-template.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/nested-template.cpp?rev=80045&r1=80044&r2=80045&view=diff

==============================================================================
--- cfe/trunk/test/SemaTemplate/nested-template.cpp (original)
+++ cfe/trunk/test/SemaTemplate/nested-template.cpp Tue Aug 25 17:53:07 2009
@@ -25,6 +25,9 @@
     T foo(U);
     template<typename V> T bar(V);
     template<typename V> T* bar(V);
+    
+    static T value1;
+    static U value2;
   };
 };
 
@@ -70,3 +73,11 @@
 X* Outer<X>::Inner1<Y>::bar(Z) {
   return 0;
 }
+
+template<typename X>
+template<typename Y>
+X Outer<X>::Inner1<Y>::value1 = 0;
+
+template<typename X>
+template<typename Y>
+Y Outer<X>::Inner1<Y>::value2 = Y();





More information about the cfe-commits mailing list