summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-24 02:52:09 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-24 02:52:09 +0000
commitb9bd8a994c8c871faf338649438a3409f67da394 (patch)
tree38511cc0bc3fd8f00a88a3346fdbe675325a6442 /clang/test
parenta283f91a67a852c311086298908c49e880a838de (diff)
downloadbcm5719-llvm-b9bd8a994c8c871faf338649438a3409f67da394.tar.gz
bcm5719-llvm-b9bd8a994c8c871faf338649438a3409f67da394.zip
Keep track of template arguments when we parse them. Right now, we don't actually do anything with the template arguments, but they'll be used to create template declarations
llvm-svn: 61413
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/cxx-template-decl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp
index bcf05fcefc2..53813776e77 100644
--- a/clang/test/Parser/cxx-template-decl.cpp
+++ b/clang/test/Parser/cxx-template-decl.cpp
@@ -3,7 +3,8 @@
// Errors
export class foo { }; // expected-error {{expected template}}
template x; // expected-error {{expected '<' after 'template'}}
-export template x; // expected-error {{expected '<' after 'template'}}
+export template x; // expected-error {{expected '<' after 'template'}} \
+ // expected-note {{exported templates are unsupported}}
template < ; // expected-error {{parse error}}
template <template X> ; // expected-error {{expected '<' after 'template'}}
template <template <typename> > ; // expected-error {{expected 'class' before '>'}}
OpenPOWER on IntegriCloud