repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RISC-V: Remove testcase XFAIL
[official-gcc.git]
/
gcc
/
testsuite
/
go.test
/
test
/
int_lit.go
blob
78deaea13020557993bbec27e6547c67428bb418
1
// run
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
// Test integer literal syntax.
8
9
package
main
10
11
import
"os"
12
13
func
main
() {
14
s
:=
0
+
15
123
+
16
0123
+
17
0000
+
18
0x0
+
19
0x123
+
20
0X0
+
21
0X123
22
if
s
!=
788
{
23
print
(
"s is "
,
s
,
"; should be 788
\n
"
)
24
os
.
Exit
(
1
)
25
}
26
}