mirror of
https://github.com/golang/go
synced 2024-11-19 00:54:42 -07:00
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
|