diff options
| author | Douglas Gregor <dgregor@apple.com> | 2008-12-24 02:52:09 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2008-12-24 02:52:09 +0000 |
| commit | b9bd8a994c8c871faf338649438a3409f67da394 (patch) | |
| tree | 38511cc0bc3fd8f00a88a3346fdbe675325a6442 /clang/test | |
| parent | a283f91a67a852c311086298908c49e880a838de (diff) | |
| download | bcm5719-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.cpp | 3 |
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 '>'}} |

