aboutsummaryrefslogtreecommitdiff
path: root/test/Index/multiple-redecls.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/multiple-redecls.c')
-rw-r--r--test/Index/multiple-redecls.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Index/multiple-redecls.c b/test/Index/multiple-redecls.c
new file mode 100644
index 000000000000..6f1f75b02f39
--- /dev/null
+++ b/test/Index/multiple-redecls.c
@@ -0,0 +1,12 @@
+// RUN: clang-cc -emit-pch %s -o %t.ast &&
+// RUN: index-test %t.ast -point-at %s:8:4 -print-decls | count 2 &&
+// RUN: index-test %t.ast -point-at %s:8:4 -print-defs | count 1
+
+static void foo(int x);
+
+static void bar(void) {
+ foo(10);
+}
+
+void foo(int x) {
+}