OSDN Git Service

Merge branch 'trunk' of git://gcc.gnu.org/git/gcc into rework
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / int_lit.go
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
9 import "os"
10
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)
23         }
24 }