diff options
author | Russ Cox <rsc@golang.org> | 2008-09-17 14:08:52 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-09-17 14:08:52 -0700 |
commit | 68209ed5e323d48a63d7bbb718a277c6fb426b47 (patch) | |
tree | fb8d29872ae9698922488ade764e74c2ac529099 /test/printbig.go | |
parent | 2902a82ca4ec269115e814646a85230420a1e355 (diff) | |
download | go-68209ed5e323d48a63d7bbb718a277c6fb426b47.tar.gz go-68209ed5e323d48a63d7bbb718a277c6fb426b47.zip |
fix printing of -(1<<63)
R=r
OCL=15441
CL=15445
Diffstat (limited to 'test/printbig.go')
-rw-r--r-- | test/printbig.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/printbig.go b/test/printbig.go new file mode 100644 index 0000000000..5ec95b9468 --- /dev/null +++ b/test/printbig.go @@ -0,0 +1,12 @@ +// $G $F.go && $L $F.$A && ./$A.out + +// Copyright 2009 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 + +func main() { + print(-(1<<63), "\n"); + print((1<<63)-1, "\n") +} |