diff options
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r-- | test/Parser/cxx-decl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp index e1b36ecfa9..c60e42f28e 100644 --- a/test/Parser/cxx-decl.cpp +++ b/test/Parser/cxx-decl.cpp @@ -237,10 +237,11 @@ namespace PR5066 { namespace PR17255 { void foo() { typename A::template B<>; // expected-error {{use of undeclared identifier 'A'}} + // expected-error@-1 {{'template' keyword not permitted here}} #if __cplusplus <= 199711L - // expected-error@-2 {{'template' keyword outside of a template}} + // expected-error@-3 {{'template' keyword outside of a template}} #endif - // expected-error@-4 {{expected a qualified name after 'typename'}} + // expected-error@-5 {{expected a qualified name after 'typename'}} } } |