summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-25 22:54:02 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-25 22:54:02 +0000
commit24ebdae1e1470cfaef2c25377561002ad28181c0 (patch)
tree4db4c6a115a5e8c1c95f74962e541d036d6d8ff6
parent7b6a83a84ef69c21f7e01401c86926831224ff37 (diff)
downloadbcm5719-llvm-24ebdae1e1470cfaef2c25377561002ad28181c0.tar.gz
bcm5719-llvm-24ebdae1e1470cfaef2c25377561002ad28181c0.zip
Test out-of-line definition of a static data member of a member class of a nested class template. Phew
llvm-svn: 80046
-rw-r--r--clang/test/SemaTemplate/nested-template.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/nested-template.cpp b/clang/test/SemaTemplate/nested-template.cpp
index d4030fef087..3a7634f53ba 100644
--- a/clang/test/SemaTemplate/nested-template.cpp
+++ b/clang/test/SemaTemplate/nested-template.cpp
@@ -46,6 +46,8 @@ void Outer<X>::Inner0<Y>::f(X, Y) {
template<typename X>
template<typename Y>
struct Outer<X>::Inner1<Y>::ReallyInner {
+ static Y value3;
+
void g(X, Y);
};
@@ -81,3 +83,7 @@ X Outer<X>::Inner1<Y>::value1 = 0;
template<typename X>
template<typename Y>
Y Outer<X>::Inner1<Y>::value2 = Y();
+
+template<typename X>
+template<typename Y>
+Y Outer<X>::Inner1<Y>::ReallyInner::value3 = Y();
OpenPOWER on IntegriCloud