diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/FixIt/fixit.cpp | 6 | ||||
| -rw-r--r-- | clang/test/Parser/cxx-template-decl.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp index c881c63e6b0..c61902d0287 100644 --- a/clang/test/FixIt/fixit.cpp +++ b/clang/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(); diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index 72f2d7d15d3..af3eb2ded5f 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -11,8 +11,8 @@ template < ; // expected-error {{parse error}} \ // expected-warning {{declaration does not declare anything}} template <template X> struct Err1; // expected-error {{expected '<' after 'template'}} \ // expected-error{{extraneous}} -template <template <typename> > struct Err2; // expected-error {{expected 'class' before '>'}} -template <template <typename> Foo> struct Err3; // expected-error {{expected 'class' before 'Foo'}} +template <template <typename> > struct Err2; // expected-error {{template template parameters require 'class' after the argument list}} +template <template <typename> Foo> struct Err3; // expected-error {{template template parameters require 'class' after the argument list}} // Template function declarations template <typename T> void foo(); |

