Brad Fitzpatrick | e014cf0 | 2012-02-24 13:17:26 +1100 | [diff] [blame] | 1 | // cmpout |
Russ Cox | 68209ed | 2008-09-17 14:08:52 -0700 | [diff] [blame] | 2 | |
| 3 | // Copyright 2009 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
Rob Pike | 19bab1d | 2012-02-24 10:30:39 +1100 | [diff] [blame] | 7 | // Test that big numbers work as constants and print can print them. |
| 8 | |
Russ Cox | 68209ed | 2008-09-17 14:08:52 -0700 | [diff] [blame] | 9 | package main |
| 10 | |
| 11 | func main() { |
Rob Pike | 4f61fc9 | 2010-09-04 10:36:13 +1000 | [diff] [blame] | 12 | print(-(1<<63), "\n") |
Russ Cox | 68209ed | 2008-09-17 14:08:52 -0700 | [diff] [blame] | 13 | print((1<<63)-1, "\n") |
| 14 | } |