blob: 2644e17b57da46ef9d91be75cbf0a2a59a404340 [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
Russ Cox918afd942009-05-08 15:21:41 -07009import "os"
10
Rob Pike34cb7c22008-06-27 14:15:06 -070011func main() {
Rob Pike74dd0ab2009-08-17 13:30:22 -070012 s := 0 +
13 123 +
14 0123 +
15 0000 +
16 0x0 +
17 0x123 +
18 0X0 +
Rob Pike4f61fc92010-09-04 10:36:13 +100019 0X123
Rob Pike74dd0ab2009-08-17 13:30:22 -070020 if s != 788 {
Rob Pike4f61fc92010-09-04 10:36:13 +100021 print("s is ", s, "; should be 788\n")
22 os.Exit(1)
Rob Pike74dd0ab2009-08-17 13:30:22 -070023 }
Robert Griesemerd2490e72008-03-19 15:45:07 -070024}