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