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 | 8e43741e5c7313b0855684fa1dface9bde1adc49 (patch) | |
tree | fb8d29872ae9698922488ade764e74c2ac529099 /test/printbig.go | |
parent | fc785088e1cd43e7099a9f29e54743e4a9cef5fe (diff) | |
download | go-8e43741e5c7313b0855684fa1dface9bde1adc49.tar.gz |
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 000000000..5ec95b946 --- /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") +} |