summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-using-directive.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-06 07:27:21 +0000
committerChris Lattner <sabre@nondot.org>2009-01-06 07:27:21 +0000
commitce1da2cfca296d27e480557df9de1b99b0c6fb11 (patch)
tree5ddb14d88e5799518e1b977f2a422005636117b3 /clang/test/Parser/cxx-using-directive.cpp
parent8dca2e9a4e39a7076fe8e9ce2eb724a537f6b08b (diff)
downloadbcm5719-llvm-ce1da2cfca296d27e480557df9de1b99b0c6fb11.tar.gz
bcm5719-llvm-ce1da2cfca296d27e480557df9de1b99b0c6fb11.zip
- 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. llvm-svn: 61801
Diffstat (limited to 'clang/test/Parser/cxx-using-directive.cpp')
-rw-r--r--clang/test/Parser/cxx-using-directive.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-using-directive.cpp b/clang/test/Parser/cxx-using-directive.cpp
index 026ef9034b3..73f1e002c2d 100644
--- a/clang/test/Parser/cxx-using-directive.cpp
+++ b/clang/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}}
OpenPOWER on IntegriCloud