diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/cxx-template-decl.cpp | 2 | ||||
-rw-r--r-- | clang/test/Parser/declarators.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index 870be930a6f..be1f81e9d15 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -6,7 +6,7 @@ template x; // expected-error {{C++ requires a type specifier for al // expected-error {{does not refer}} export template x; // expected-error {{expected '<' after 'template'}} export template<class T> class x0; // expected-warning {{exported templates are unsupported}} -template < ; // expected-error {{parse error}} \ +template < ; // expected-error {{expected template parameter}} \ // expected-error{{expected ',' or '>' in template-parameter-list}} \ // expected-warning {{declaration does not declare anything}} template <template X> struct Err1; // expected-error {{expected '<' after 'template'}} \ diff --git a/clang/test/Parser/declarators.c b/clang/test/Parser/declarators.c index e245adb7cde..a7a01d8b4e8 100644 --- a/clang/test/Parser/declarators.c +++ b/clang/test/Parser/declarators.c @@ -97,3 +97,6 @@ void *test14b = (void*)test14a; // Make sure test14a didn't get skipped. // rdar://problem/8358508 long struct X { int x; } test15(); // expected-error {{'long struct' is invalid}} + +void test16(i) int i j; { } // expected-error {{expected ';' at end of declaration}} +void test17(i, j) int i, j k; { } // expected-error {{expected ';' at end of declaration}} |