Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
4633a8ff
Commit
4633a8ff
authored
Jun 12, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This test now runs correctly, with no bugs commented out
SVN=122460
parent
2254a8ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
literal.go
test/literal.go
+5
-5
No files found.
test/literal.go
View file @
4633a8ff
...
...
@@ -99,10 +99,10 @@ func main() {
assert
(
u22
==
u23
,
"u22"
);
// uint64
//BUG
var u30 uint64 = 0;
//BUG
var u31 uint64 = 1;
//BUG
var u32 uint64 = 18446744073709551615;
//BUG
var u33 uint64 = +18446744073709551615;
var
u30
uint64
=
0
;
var
u31
uint64
=
1
;
var
u32
uint64
=
18446744073709551615
;
var
u33
uint64
=
+
18446744073709551615
;
// float
var
f00
float
=
3.14159
;
...
...
@@ -186,7 +186,7 @@ func main() {
assert
(
s1
[
0
]
==
'h'
,
"s1-0"
);
assert
(
s1
[
4
]
==
0xc3
,
"s1-4"
);
assert
(
s1
[
5
]
==
0xb4
,
"s1-5"
);
// var s2 string = "\a\b\f\n\r\t\v"; // BUG: \r miscompiles
var
s2
string
=
"
\a\b\f\n\r\t\v
"
;
var
s00
string
=
"
\0
00"
;
var
s01
string
=
"
\0
07"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment