summaryrefslogtreecommitdiff
path: root/test/FixIt
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-04-17 03:29:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-04-17 03:29:33 +0000
commit8b7a1c51e488639a3fe3854cc03955e9c5b21876 (patch)
tree9ed8f6fd50bd0ab76c27e1b2427f7246c8e37ae1 /test/FixIt
parentd9974190c26c0ee9d8e1a8e6b569b2c89e9885b3 (diff)
downloadclang-8b7a1c51e488639a3fe3854cc03955e9c5b21876.tar.gz
Refactor all the checking for missing 'template<>'s when a declaration has a
template-id after its scope specifier into a single place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt')
-rw-r--r--test/FixIt/fixit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp
index 52bbb3849a..6a8e7d1e84 100644
--- a/test/FixIt/fixit.cpp
+++ b/test/FixIt/fixit.cpp
@@ -19,7 +19,7 @@ virtual void C1::f() { } // expected-error{{'virtual' can only be specified insi
static void C1::g() { } // expected-error{{'static' can only be specified inside the class definition}}
-template<int Value> struct CT { }; // expected-note{{previous use is here}}
+template<int Value> struct CT { template<typename> struct Inner; }; // expected-note{{previous use is here}}
CT<10 >> 2> ct; // expected-warning{{require parentheses}}
@@ -32,6 +32,8 @@ struct CT<0> { }; // expected-error{{'template<>'}}
template<> union CT<1> { }; // expected-error{{tag type}}
+struct CT<2>::Inner<int> { }; // expected-error 2{{'template<>'}}
+
// Access declarations
class A {
protected: