diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-15 23:47:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-15 23:47:49 +0000 |
commit | 37c2e9664316b013b9a86f841f143f19ffbc0a02 (patch) | |
tree | b38889fca688a798b9dc021e87e245d5bae7c441 /test/Index/cindex-on-invalid.m | |
parent | db9e9e61f8311d8852bd15730f78e56f3ffa0508 (diff) |
c-index-test shouldn't crash when a goto has no matching label. Fixes <rdar://problem/9123493>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/cindex-on-invalid.m')
-rw-r--r-- | test/Index/cindex-on-invalid.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Index/cindex-on-invalid.m b/test/Index/cindex-on-invalid.m index d2d952d8b1..d223c2ad59 100644 --- a/test/Index/cindex-on-invalid.m +++ b/test/Index/cindex-on-invalid.m @@ -1,6 +1,13 @@ // RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s +// <rdar://problem/9123493> +void test() { + goto exit; +} + int foo; int -// CHECK: cindex-on-invalid.m:6:70: error: expected identifier or '('
\ No newline at end of file +// CHECK: cindex-on-invalid.m:5:8: error: use of undeclared label 'exit' +// CHECK: cindex-on-invalid.m:13:1: error: expected identifier or '(' + |