diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-09 22:14:25 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-09 22:14:25 +0000 |
commit | 3af700977bdc3047044f22409f0e8aa24daae0f7 (patch) | |
tree | 25c7ce87b0791470cdd2d220a8d02256a3c8f162 /clang/test/Parser/eof.cpp | |
parent | 546bc1103b682c4ea66116ddaf0fc6fdf0a8bdd5 (diff) | |
download | bcm5719-llvm-3af700977bdc3047044f22409f0e8aa24daae0f7.tar.gz bcm5719-llvm-3af700977bdc3047044f22409f0e8aa24daae0f7.zip |
Diagnose attempts to explicitly instantiate a template at class scope. Previously Clang would simply ignore the 'template' keyword in this case.
llvm-svn: 294639
Diffstat (limited to 'clang/test/Parser/eof.cpp')
-rw-r--r-- | clang/test/Parser/eof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/eof.cpp b/clang/test/Parser/eof.cpp index 3c966c50e1d..4a06587edea 100644 --- a/clang/test/Parser/eof.cpp +++ b/clang/test/Parser/eof.cpp @@ -1,6 +1,6 @@ // RUN: not %clang_cc1 %s -fsyntax-only 2>&1 | FileCheck %s -// CHECK: error: expected member name or ';' after declaration specifiers +// CHECK: error: expected '<' after 'template' // CHECK: error: expected '}' // CHECK: note: to match this '{' // CHECK: error: expected ';' after class |