Robert Griesemer | d2490e7 | 2008-03-19 15:45:07 -0700 | [diff] [blame] | 1 | // $G $F.go && $L $F.$A && ./$A.out |
| 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 | |
| 7 | package main |
| 8 | |
Rob Pike | 34cb7c2 | 2008-06-27 14:15:06 -0700 | [diff] [blame] | 9 | func main() { |
Russ Cox | 3609624 | 2009-01-16 14:58:14 -0800 | [diff] [blame] | 10 | s := |
Rob Pike | e285ed6 | 2008-06-08 17:19:11 -0700 | [diff] [blame] | 11 | 0 + |
| 12 | 123 + |
| 13 | 0123 + |
| 14 | 0000 + |
| 15 | 0x0 + |
| 16 | 0x123 + |
| 17 | 0X0 + |
| 18 | 0X123; |
| 19 | if s != 788 { |
Rob Pike | bc2f5f1 | 2008-08-11 22:07:49 -0700 | [diff] [blame] | 20 | print("s is ", s, "; should be 788\n"); |
Russ Cox | 3609624 | 2009-01-16 14:58:14 -0800 | [diff] [blame] | 21 | sys.Exit(1); |
Rob Pike | e285ed6 | 2008-06-08 17:19:11 -0700 | [diff] [blame] | 22 | } |
Robert Griesemer | d2490e7 | 2008-03-19 15:45:07 -0700 | [diff] [blame] | 23 | } |