diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-28 17:57:07 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-28 17:57:07 +0000 |
commit | 36ef0787532ef3ecfc8ecd5e9661f5b2f87a280f (patch) | |
tree | 980b07903a482071f08cad45d5c4441aee9ebe8a /test/SemaCXX/using-decl-templates.cpp | |
parent | e58884187ff08b632cf42ae9476d473f2400d571 (diff) |
Check for UnresolvedUsingDecl when determining if a declaration is a redeclaration or not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-decl-templates.cpp')
-rw-r--r-- | test/SemaCXX/using-decl-templates.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/using-decl-templates.cpp b/test/SemaCXX/using-decl-templates.cpp index 13ee1b2dd3..b7cc69ae52 100644 --- a/test/SemaCXX/using-decl-templates.cpp +++ b/test/SemaCXX/using-decl-templates.cpp @@ -14,3 +14,9 @@ template<typename T> struct B : A<T> { }; B<int> a; // expected-note{{in instantiation of template class 'struct B<int>' requested here}} + +template<typename T> struct C : A<T> { + using A<T>::f; + + void f() { }; +}; |