aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2014-05-27 16:01:43 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2014-05-27 16:01:43 -0700
commitbd401baef2349e41d99280557bd5d709be78c894 (patch)
tree1de4ff9fa1032cbe3b80546c79db32f0aebdc381
parent7f638e90231e56c523ae51ba18dbbf084db8b86e (diff)
downloadgo-bd401baef2349e41d99280557bd5d709be78c894.tar.gz
go-bd401baef2349e41d99280557bd5d709be78c894.zip
test: add test for fixed issue 7863
Fixes #7863 LGTM=rsc R=rsc, ruiu CC=golang-codereviews https://golang.org/cl/98610045
-rw-r--r--test/fixedbugs/issue7863.go17
1 files changed, 17 insertions, 0 deletions
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())
+ }
+}