blob: 4121070f340e33600c11ff507b6e3925d1bf591e [file] [log] [blame]
Robert Griesemerd2490e72008-03-19 15:45:07 -07001// $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
7package main
8
Rob Pike34cb7c22008-06-27 14:15:06 -07009func main() {
Russ Cox36096242009-01-16 14:58:14 -080010 s :=
Rob Pikee285ed62008-06-08 17:19:11 -070011 0 +
12 123 +
13 0123 +
14 0000 +
15 0x0 +
16 0x123 +
17 0X0 +
18 0X123;
19 if s != 788 {
Rob Pikebc2f5f12008-08-11 22:07:49 -070020 print("s is ", s, "; should be 788\n");
Russ Cox36096242009-01-16 14:58:14 -080021 sys.Exit(1);
Rob Pikee285ed62008-06-08 17:19:11 -070022 }
Robert Griesemerd2490e72008-03-19 15:45:07 -070023}