summaryrefslogtreecommitdiff
path: root/clang/test/Index/unmatched-braces.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/unmatched-braces.m')
-rw-r--r--clang/test/Index/unmatched-braces.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Index/unmatched-braces.m b/clang/test/Index/unmatched-braces.m
new file mode 100644
index 0000000..84fe82a
--- /dev/null
+++ b/clang/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