Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.test / test / int_lit.go
blob2644e17b57da46ef9d91be75cbf0a2a59a404340
1 // $G $F.go && $L $F.$A && ./$A.out
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.
7 package main
9 import "os"
11 func main() {
12 s := 0 +
13 123 +
14 0123 +
15 0000 +
16 0x0 +
17 0x123 +
18 0X0 +
19 0X123
20 if s != 788 {
21 print("s is ", s, "; should be 788\n")
22 os.Exit(1)