summaryrefslogtreecommitdiff
path: root/test/Index/unmatched-braces.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/unmatched-braces.m')
-rw-r--r--test/Index/unmatched-braces.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Index/unmatched-braces.m b/test/Index/unmatched-braces.m
new file mode 100644
index 000000000000..84fe82a06672
--- /dev/null
+++ b/test/Index/unmatched-braces.m
@@ -0,0 +1,11 @@
+@implementation I
+-(void)meth {
+ int x;
+ if (x) {
+}
+@end
+
+// RUN: c-index-test -cursor-at=%s:3:7 %s > %t
+// RUN: FileCheck %s -input-file %t
+
+// CHECK: VarDecl=x:3:7