diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-25 22:54:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-25 22:54:02 +0000 |
commit | bc047ba73376ac6ef78b3fba0efb8493f7843138 (patch) | |
tree | 7c36a1d719d3e630a6e61bcdc9d667fe67800370 /test/SemaTemplate/nested-template.cpp | |
parent | c131ebb5cb509838462f9dcf680948dbfaf89d0f (diff) | |
download | clang-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.cpp | 6 |
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(); |