diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-09-01 15:49:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-09-01 15:49:26 +0000 |
| commit | 0073962025603d76fd89129c1c1cdbe8228db97e (patch) | |
| tree | 0b19ee4ad30c6564e3c6546faf3894bdc01e7034 /clang/test/SemaObjC/method-no-context.m | |
| parent | 2333b12c8adde0c9fe9c52aa5a650a9a5011d9ab (diff) | |
| download | bcm5719-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/method-no-context.m')
| -rw-r--r-- | clang/test/SemaObjC/method-no-context.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/method-no-context.m b/clang/test/SemaObjC/method-no-context.m index c88205dfd28..3c45beef042 100644 --- a/clang/test/SemaObjC/method-no-context.m +++ b/clang/test/SemaObjC/method-no-context.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -- im0 { int a; return 0; // expected-error{{missing context for method declaration}} +- im0 { // expected-note{{to match this '{'}} expected-error{{missing context for method declaration}} + int a; return 0; // expected-error{{expected '}'}} |

