diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-12 21:31:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-12 21:31:51 +0000 |
commit | 2399628cea7b5e1aa9836a9077ce00ee2f76187a (patch) | |
tree | e001062712c10afebcc0ec459d2dd7694e65a369 /clang/test/Parser/cxx-template-decl.cpp | |
parent | e541ea3a61a3331e39d5a90387472126453293bd (diff) | |
download | bcm5719-llvm-2399628cea7b5e1aa9836a9077ce00ee2f76187a.tar.gz bcm5719-llvm-2399628cea7b5e1aa9836a9077ce00ee2f76187a.zip |
Refactor the parsing of declarations so that template declarations can
parse just a single declaration and provide a reasonable diagnostic
when the "only one declarator per template declaration" rule is
violated. This eliminates some ugly, ugly hackery where we used to
require thatn the layout of a DeclGroup of a single element be the
same as the layout of a single declaration.
llvm-svn: 71596
Diffstat (limited to 'clang/test/Parser/cxx-template-decl.cpp')
-rw-r--r-- | clang/test/Parser/cxx-template-decl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index ec333de8b4f..6a795eeabe4 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -2,8 +2,7 @@ // Errors export class foo { }; // expected-error {{expected template}} -template x; // expected-error {{expected '<' after 'template'}} \ -// expected-error {{C++ requires a type specifier for all declarations}} +template x; // expected-error {{C++ requires a type specifier for all declarations}} export template x; // expected-error {{expected '<' after 'template'}} \ // expected-note {{exported templates are unsupported}} \ // expected-error {{C++ requires a type specifier for all declarations}} |