diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-27 04:21:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-27 04:21:56 +0000 |
commit | 551f48c2d96c8a519feb195d34a691c8b97b3994 (patch) | |
tree | 3595d350c97dd33c6496749fa6d8937e44e4c1de /test/SemaTemplate/nested-template.cpp | |
parent | 9af5500f3f132f9a2f9abbe82113a7c7bb751472 (diff) |
Tests and fixes for templates declared within (non-template)
classes. Test case from Anders Carlsson, fix from Piotr Rak!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/nested-template.cpp')
-rw-r--r-- | test/SemaTemplate/nested-template.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-template.cpp b/test/SemaTemplate/nested-template.cpp new file mode 100644 index 0000000000..bd9e89f76a --- /dev/null +++ b/test/SemaTemplate/nested-template.cpp @@ -0,0 +1,16 @@ +// RUN: clang-cc -fsyntax-only %s + +class A; + +class S { +public: + template<typename T> struct A { + struct Nested { + typedef T type; + }; + }; +}; + +int i; +S::A<int>::Nested::type *ip = &i; + |