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()) + } +}