1
0
mirror of https://github.com/golang/go synced 2024-09-30 20:28:32 -06:00

go.tools/go/pointer: add test file missing from CL 112610043 (rev 32ae05502022)

TBR=gri
R=gri
CC=adg, golang-codereviews
https://golang.org/cl/111580043
This commit is contained in:
Alan Donovan 2014-07-23 12:28:56 -04:00
parent 63db0771ef
commit b5528ca070

24
go/pointer/testdata/timer.go vendored Normal file
View File

@ -0,0 +1,24 @@
// +build ignore
package main
import "time"
func after() {}
func main() {
// @calls time.startTimer -> time.sendTime
ticker := time.NewTicker(1)
<-ticker.C
// @calls time.startTimer -> time.sendTime
timer := time.NewTimer(time.Second)
<-timer.C
// @calls time.startTimer -> time.goFunc
// @calls time.goFunc -> main.after
timer = time.AfterFunc(time.Second, after)
<-timer.C
}
// @calls time.sendTime -> time.Now