diff options
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
| -rw-r--r-- | test/Parser/cxx-decl.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp index 1a24520b8f55..c60e42f28eef 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'}} } } @@ -298,6 +299,11 @@ inline namespace ParensAroundFriend { // expected-error 0-1{{C++11}} } } +namespace rdar37099386 { + class A typename A; // expected-error {{expected a qualified name after 'typename'}} + // expected-error@-1 {{cannot combine with previous 'class' declaration specifier}} +} + // PR8380 extern "" // expected-error {{unknown linkage language}} test6a { ;// expected-error {{C++ requires a type specifier for all declarations}} |
