]> Cypherpunks repositories - gostls13.git/commitdiff
test: add test for fixed issue 7863
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 May 2014 23:01:43 +0000 (16:01 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 May 2014 23:01:43 +0000 (16:01 -0700)
Fixes #7863

LGTM=rsc
R=rsc, ruiu
CC=golang-codereviews
https://golang.org/cl/98610045

test/fixedbugs/issue7863.go [new file with mode: 0644]

diff --git a/test/fixedbugs/issue7863.go b/test/fixedbugs/issue7863.go
new file mode 100644 (file)
index 0000000..796db6a
--- /dev/null
@@ -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())
+       }
+}