summaryrefslogtreecommitdiff
path: root/clang/test/Index/unmatched-braces.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/unmatched-braces.c')
-rw-r--r--clang/test/Index/unmatched-braces.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Index/unmatched-braces.c b/clang/test/Index/unmatched-braces.c
new file mode 100644
index 0000000..b994605
--- /dev/null
+++ b/clang/test/Index/unmatched-braces.c
@@ -0,0 +1,9 @@
+void foo() {
+ int x;
+ if (x) {
+}
+
+// RUN: c-index-test -cursor-at=%s:2:7 %s > %t
+// RUN: FileCheck %s -input-file %t
+
+// CHECK: VarDecl=x:2:7