Files
clang-p2996/llgo/third_party/gotools/go/pointer/testdata/timer.go
Peter Collingbourne 56109b78c7 Roll gotools to 47f2109c.
At the same time, perform a number of simplifications:

- Rename go.tools directory to gotools.

- Import only the go directory; all required Go analysis code and
  its dependencies have now been moved to this directory.

llvm-svn: 225825
2015-01-13 20:45:08 +00:00

25 lines
430 B
Go

// +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