From: Brad Fitzpatrick Date: Tue, 27 May 2014 23:01:43 +0000 (-0700) Subject: test: add test for fixed issue 7863 X-Git-Tag: go1.3rc1~44 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bd401baef2349e41d99280557bd5d709be78c894;p=gostls13.git test: add test for fixed issue 7863 Fixes #7863 LGTM=rsc R=rsc, ruiu CC=golang-codereviews https://golang.org/cl/98610045 --- diff --git a/test/fixedbugs/issue7863.go b/test/fixedbugs/issue7863.go new file mode 100644 index 0000000000..796db6a98f --- /dev/null +++ b/test/fixedbugs/issue7863.go @@ -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()) + } +}