diff options
author | John McCall <rjmccall@apple.com> | 2011-02-14 20:37:25 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-14 20:37:25 +0000 |
commit | f5ba7e089daadcd60b0f6e31d932be8bb6045281 (patch) | |
tree | a2fdfec16874e77a03f209b57297f4a8ea6e0c16 /test/CXX/class.access/p4.cpp | |
parent | b641f08cbee230ce872b37816d241cef081af803 (diff) |
Change the context correctly when instantiating a static data member definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/class.access/p4.cpp')
-rw-r--r-- | test/CXX/class.access/p4.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CXX/class.access/p4.cpp b/test/CXX/class.access/p4.cpp index e4e9ff0496..a8a2ef928e 100644 --- a/test/CXX/class.access/p4.cpp +++ b/test/CXX/class.access/p4.cpp @@ -498,3 +498,13 @@ namespace rdar8876150 { return !b; } } + +namespace test23 { + template <typename T> class A { + A(); + static A instance; + }; + + template <typename T> A<T> A<T>::instance; + template class A<int>; +} |