summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/crash-label.m
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-01 15:49:26 +0000
committerChris Lattner <sabre@nondot.org>2010-09-01 15:49:26 +0000
commit0073962025603d76fd89129c1c1cdbe8228db97e (patch)
tree0b19ee4ad30c6564e3c6546faf3894bdc01e7034 /clang/test/SemaObjC/crash-label.m
parent2333b12c8adde0c9fe9c52aa5a650a9a5011d9ab (diff)
downloadbcm5719-llvm-0073962025603d76fd89129c1c1cdbe8228db97e.tar.gz
bcm5719-llvm-0073962025603d76fd89129c1c1cdbe8228db97e.zip
when emitting an error about a missing } in a compound statement, emit
a "to match this {" note, pointing out the opener. llvm-svn: 112709
Diffstat (limited to 'clang/test/SemaObjC/crash-label.m')
-rw-r--r--clang/test/SemaObjC/crash-label.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/test/SemaObjC/crash-label.m b/clang/test/SemaObjC/crash-label.m
index d0a5ae40c7f..ffcb46344e2 100644
--- a/clang/test/SemaObjC/crash-label.m
+++ b/clang/test/SemaObjC/crash-label.m
@@ -2,8 +2,9 @@
- (NSDictionary*) _executeScript:(NSString *)source { // expected-error 2 {{expected a type}} \
// expected-error {{missing context for method declaration}}
- Exit: [nilArgs release]; // expected-error {{use of undeclared identifier}}
- }
- - (NSDictionary *) _setupKernelStandardMode:(NSString *)source { // expected-error 2 {{expected a type}} \
-expected-error {{missing context for method declaration}}
- Exit: if(_ciKernel && !success ) { // expected-error {{use of undeclared identifier}} // expected-error 2 {{expected}}
+Exit: [nilArgs release]; // expected-error {{use of undeclared identifier}}
+}
+- (NSDictionary *) _setupKernelStandardMode:(NSString *)source { // expected-error 2 {{expected a type}} \
+expected-error {{missing context for method declaration}} \
+expected-note{{to match this '{'}}
+ Exit: if(_ciKernel && !success ) { // expected-error {{use of undeclared identifier}} // expected-error 2 {{expected}} expected-note{{to match this '{'}}
OpenPOWER on IntegriCloud