aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-template-decl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-12 21:31:51 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-12 21:31:51 +0000
commit1426e534b4fca6a05b1120d634aae46be79ca17c (patch)
treec7e2cb48eceb9e463b06b8d08b69c8569c0e85f1 /test/Parser/cxx-template-decl.cpp
parent7a574ccd5247189693e0764bf1f5711d33ca6064 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-template-decl.cpp')
-rw-r--r--test/Parser/cxx-template-decl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Parser/cxx-template-decl.cpp b/test/Parser/cxx-template-decl.cpp
index ec333de8b4..6a795eeabe 100644
--- a/test/Parser/cxx-template-decl.cpp
+++ b/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}}