Commit bd401bae authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

test: add test for fixed issue 7863

Fixes #7863

LGTM=rsc
R=rsc, ruiu
CC=golang-codereviews
https://golang.org/cl/98610045
parent 7f638e90
// 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())
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment