aboutsummaryrefslogtreecommitdiff
path: root/cmd/guru/testdata/src/pointsto/main.golden
blob: 40a830f0827491828bfc46e88642314185d078d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
-------- @pointsto const --------

Error: pointer analysis wants an expression of reference type; got untyped float
-------- @pointsto func-ref-main --------
this func() may point to these objects:
	pointsto.main

-------- @pointsto func-ref-*C.f --------
this func() may point to these objects:
	(*pointsto.C).f

-------- @pointsto func-ref-D.f --------
this func() may point to these objects:
	(pointsto.D).f

-------- @pointsto func-ref-I.f --------

Error: func (pointsto.I).f() is an interface method
-------- @pointsto func-ref-d.f --------
this func() may point to these objects:
	(pointsto.D).f

-------- @pointsto func-ref-i.f --------

Error: func (pointsto.I).f() is an interface method
-------- @pointsto ref-lexical-d.f --------
this func() may point to these objects:
	(pointsto.D).f

-------- @pointsto ref-anon --------
this func() may point to these objects:
	pointsto.main$1

-------- @pointsto ref-global --------
this *string may point to these objects:
	new

-------- @pointsto var-def-x-1 --------
this *int may point to these objects:
	a

-------- @pointsto var-ref-x-1 --------
this *int may point to these objects:
	a

-------- @pointsto var-def-x-2 --------
this *int may point to these objects:
	b

-------- @pointsto var-ref-x-2 --------
this *int may point to these objects:
	b

-------- @pointsto var-ref-i-C --------
this I may contain these dynamic types:
	*C, may point to:
		new

-------- @pointsto var-ref-i-D --------
this I may contain these dynamic types:
	D

-------- @pointsto var-ref-i --------
this I may contain these dynamic types:
	*C, may point to:
		new
	D

-------- @pointsto map-lookup,ok --------

Error: pointer analysis wants an expression of reference type; got (*int, bool)
-------- @pointsto mapval --------
this *int may point to these objects:
	a

-------- @pointsto m --------
this map[string]*int may point to these objects:
	makemap

-------- @pointsto builtin-panic --------

Error: pointer analysis wants an expression of reference type; got ()
-------- @pointsto var-ref-s-f --------
this any may contain these dynamic types:
	chan bool, may point to:
		makechan

-------- @pointsto func-live --------

Error: pointer analysis did not find expression (dead code?)
-------- @pointsto func-dead --------

Error: pointer analysis did not find expression (dead code?)
-------- @pointsto b --------

Error: pointer analysis did not find expression (dead code?)