summaryrefslogtreecommitdiff
path: root/test/Index/multiple-redecls.c
blob: faea88fc6b77cd296688ed62782550b4e0f9313c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -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) { 
}