aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-04-05 16:56:02 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-04-05 16:56:02 +0000
commita82354563ebf9ed03b32ff5405e312425e6c1cad (patch)
treef2acf9e98d9f13f09b8b29c191a8bc40ea563e24 /test/FixIt/fixit.cpp
parentb98b998e9a5637012ab39ad1dabdad7c798721e8 (diff)
Improve & simplify diagnostic for missing 'class' in template template parameter.
Change suggested by Sebastian Redl on review feedback from r153887. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r--test/FixIt/fixit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp
index c881c63e6b..c61902d028 100644
--- a/test/FixIt/fixit.cpp
+++ b/test/FixIt/fixit.cpp
@@ -200,7 +200,7 @@ template<class T> typedef Mystery<T>::type getMysteriousThing() { // \
return Mystery<T>::get();
}
-template<template<typename> Foo, // expected-error {{expected 'class' before 'Foo'}}
- template<typename> typename Bar, // expected-error {{expected 'class' instead of 'typename'}}
- template<typename> struct Baz> // expected-error {{expected 'class' instead of 'struct'}}
+template<template<typename> Foo, // expected-error {{template template parameters require 'class' after the argument list}}
+ template<typename> typename Bar, // expected-error {{template template parameters require 'class' after the argument list}}
+ template<typename> struct Baz> // expected-error {{template template parameters require 'class' after the argument list}}
void func();