commit | 68209ed5e323d48a63d7bbb718a277c6fb426b47 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Wed Sep 17 14:08:52 2008 -0700 |
committer | Russ Cox <rsc@golang.org> | Wed Sep 17 14:08:52 2008 -0700 |
tree | fb8d29872ae9698922488ade764e74c2ac529099 | |
parent | 2902a82ca4ec269115e814646a85230420a1e355 [diff] [blame] |
fix printing of -(1<<63) R=r OCL=15441 CL=15445
diff --git a/test/printbig.go b/test/printbig.go new file mode 100644 index 0000000..5ec95b9 --- /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") +}