aboutsummaryrefslogtreecommitdiff
path: root/test/printbig.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-09-17 14:08:52 -0700
committerRuss Cox <rsc@golang.org>2008-09-17 14:08:52 -0700
commit68209ed5e323d48a63d7bbb718a277c6fb426b47 (patch)
treefb8d29872ae9698922488ade764e74c2ac529099 /test/printbig.go
parent2902a82ca4ec269115e814646a85230420a1e355 (diff)
downloadgo-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.go12
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")
+}