]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Index/multiple-redecls.c
Update clang to r93512.
[FreeBSD/FreeBSD.git] / test / Index / multiple-redecls.c
1 // RUN: %clang_cc1 -emit-pch %s -o %t.ast
2 // RUN: index-test %t.ast -point-at %s:8:4 -print-decls | count 2
3 // RUN: index-test %t.ast -point-at %s:8:4 -print-defs | count 1
4
5 static void foo(int x);
6
7 static void bar(void) {
8   foo(10);
9 }
10
11 void foo(int x) { 
12 }