mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
test: add test for fixed issue 7863
Fixes #7863 LGTM=rsc R=rsc, ruiu CC=golang-codereviews https://golang.org/cl/98610045
This commit is contained in:
parent
7f638e9023
commit
bd401baef2
17
test/fixedbugs/issue7863.go
Normal file
17
test/fixedbugs/issue7863.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
// 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())
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue