Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test/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