mirror of https://github.com/golang/go.git
18 lines
317 B
Go
18 lines
317 B
Go
// run
|
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import "time"
|
|
|
|
func main() {
|
|
now := time.Now()
|
|
f := now.Unix
|
|
if now.Unix() != f() {
|
|
println("BUG: ", now.Unix(), "!=", f())
|
|
}
|
|
}
|