diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-06 07:27:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-06 07:27:21 +0000 |
commit | 823c44e6d73141f642e207980b4021ddcf09897b (patch) | |
tree | e9aa917cfc4ad959b1898a0e6f1c28192c9b53e0 /test/Parser/cxx-using-directive.cpp | |
parent | ead013e4a89d8a51acacebe541b922b309867642 (diff) |
- Various comment typo fixes in Sema.h
- Simplify ParseDeclCXX to use early exit on error instead of nesting.
- Change ParseDeclCXX to using the 'skip on error' form of ExpectAndConsume.
- If we don't see the ; in a using directive, still call the action, for
hopefully better error recovery.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-using-directive.cpp')
-rw-r--r-- | test/Parser/cxx-using-directive.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Parser/cxx-using-directive.cpp b/test/Parser/cxx-using-directive.cpp index 026ef9034b..73f1e002c2 100644 --- a/test/Parser/cxx-using-directive.cpp +++ b/test/Parser/cxx-using-directive.cpp @@ -28,5 +28,6 @@ namespace D { using namespace ! ; // expected-error{{expected namespace name}} using namespace A ; // expected-error{{expected namespace name}} -using namespace ::A B ; // expected-error{{expected ';' after namespace name}} +using namespace ::A // expected-error{{expected namespace name}} + B ; // expected-error{{expected ';' after namespace name}} |