aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/query-find-references-struct
blob: ba51c5e5394a524cb1d5128a1121fc236708a95c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
find-references source0.c some_struct "" 1 10

some_struct has 3 references:

function field_refs uses it at source0.c:39
  39:	int field_refs(struct some_struct* p, union some_union* u)
  40:	{


function func_accepting_a_struct uses it at source0.c:29
  29:	int func_accepting_a_struct(struct some_struct* p)
  30:	{


function func_accepting_a_struct uses it at source0.c:31
  30:	{
  31:		return ((some_struct_t*)p)->x +
  32:		       ((union some_union*)p)->x;