mirror of
https://github.com/golang/go
synced 2024-11-18 23:34:45 -07:00
6643abb26c
Suggested reading order: - doc.go - api.go, analysis.go, callgraph.go, labels.go - print.go, util.go - gen.go - solve.go - pointer_test.go, testdata/* - intrinsics.go (none are implemented yet) R=dannyb, gri, crawshaw, 0xjnml CC=golang-dev https://golang.org/cl/10618043
22 lines
304 B
Go
22 lines
304 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
type S int
|
|
|
|
var theS S
|
|
|
|
func (s *S) String() string {
|
|
print(s) // @pointsto main.theS
|
|
return ""
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println("Hello, World!", &theS)
|
|
}
|
|
|
|
// @calls main.main -> fmt.Println
|
|
// @calls (*fmt.pp).handleMethods -> (*main.S).String
|