summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-11 20:59:20 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-11 20:59:20 +0000
commit994d73f8473cb2cd3ce2f69c9575c95015be788a (patch)
treed6f95d3f1b8ed751e3d6c5485455411b26e81b48 /test/SemaCXX
parent47f1165c92bc4104e314223ed9ad251e914687c1 (diff)
Part of PR10101: after a parse error in a declaration, try harder to find the
right place to pick up parsing. In C++, this had a tendency to skip everything declared within headers if the TU starts with garbage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX')
-rw-r--r--test/SemaCXX/class.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/class.cpp b/test/SemaCXX/class.cpp
index ec82925fe4..4dffc8d9ec 100644
--- a/test/SemaCXX/class.cpp
+++ b/test/SemaCXX/class.cpp
@@ -131,10 +131,10 @@ namespace pr6629 {
bogus<foo<T1,T2> > // expected-error {{unknown template name 'bogus'}} \
// BOGUS expected-error {{expected '{' after base class list}} \
// BOGUS expected-error {{expected ';' after struct}} \
- // BOGUS expected-error {{expected unqualified-id}} \
+ // BOGUS expected-error {{expected unqualified-id}}
{ };
- template<> struct foo<unknown,unknown> { // why isn't there an error here?
+ template<> struct foo<unknown,unknown> { // expected-error {{undeclared identifier 'unknown'}}
template <typename U1, typename U2> struct bar {
typedef bar type;
static const int value = 0;