2018-05-31 18:51:00 +03:00
|
|
|
// run
|
2008-09-17 14:08:52 -07:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2012-02-24 10:30:39 +11:00
|
|
|
// Test that big numbers work as constants and print can print them.
|
|
|
|
|
2008-09-17 14:08:52 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
2010-09-04 10:36:13 +10:00
|
|
|
print(-(1<<63), "\n")
|
2008-09-17 14:08:52 -07:00
|
|
|
print((1<<63)-1, "\n")
|
|
|
|
}
|