summaryrefslogtreecommitdiff
path: root/clang/test/Index/index-invalid-code.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/index-invalid-code.m')
-rw-r--r--clang/test/Index/index-invalid-code.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Index/index-invalid-code.m b/clang/test/Index/index-invalid-code.m
new file mode 100644
index 0000000..9084533
--- /dev/null
+++ b/clang/test/Index/index-invalid-code.m
@@ -0,0 +1,8 @@
+struct S {
+ int {
+};
+typedef struct S S;
+
+// RUN: c-index-test -index-file %s | FileCheck %s
+// CHECK: [indexDeclaration]: kind: struct | name: S |
+// CHECK-NOT: [indexDeclaration]: kind: struct | name: S |