summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/nested-template.cpp
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
commitbc047ba73376ac6ef78b3fba0efb8493f7843138 (patch)
tree7c36a1d719d3e630a6e61bcdc9d667fe67800370 /test/SemaTemplate/nested-template.cpp
parentc131ebb5cb509838462f9dcf680948dbfaf89d0f (diff)
downloadclang-bc047ba73376ac6ef78b3fba0efb8493f7843138.tar.gz
Test out-of-line definition of a static data member of a member class of a nested class template. Phew
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/nested-template.cpp')
-rw-r--r--test/SemaTemplate/nested-template.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-template.cpp b/test/SemaTemplate/nested-template.cpp
index d4030fef08..3a7634f53b 100644
--- a/test/SemaTemplate/nested-template.cpp
+++ b/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();