summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/qualified-id.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-28 07:26:33 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-28 07:26:33 +0000
commit9d7b35303c6f1eaee85039d0f934c456e063cd0a (patch)
treef335aa54c6ebe6e542ab65accd7583666eca520b /test/SemaTemplate/qualified-id.cpp
parent0d696533420fca4cf32694621e3edf582ad4d06e (diff)
downloadclang-9d7b35303c6f1eaee85039d0f934c456e063cd0a.tar.gz
Parse a C++ scope specifier followed by a "typename" annotation token as a type name within the declaration specifiers. Fixes PR5061.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/qualified-id.cpp')
-rw-r--r--test/SemaTemplate/qualified-id.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaTemplate/qualified-id.cpp b/test/SemaTemplate/qualified-id.cpp
new file mode 100644
index 0000000000..85efab2b5c
--- /dev/null
+++ b/test/SemaTemplate/qualified-id.cpp
@@ -0,0 +1,9 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+// PR5061
+namespace a {
+ template <typename T> class C {};
+}
+namespace b {
+ template<typename T> void f0(a::C<T> &a0) { }
+}