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
0b6e6afb
Commit
0b6e6afb
authored
Jun 30, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test that was mistakenly not checked in, now fixed
SVN=125408
parent
6973e381
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
bug059.go
test/fixedbugs/bug059.go
+34
-0
golden.out
test/golden.out
+2
-3
No files found.
test/fixedbugs/bug059.go
0 → 100644
View file @
0b6e6afb
// $G $D/$F.go && $L $F.$A && ./$A.out
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
main
func
P
(
a
*
[]
string
)
string
{
s
:=
"{"
;
for
i
:=
0
;
i
<
2
;
i
++
{
if
i
>
0
{
s
+=
","
}
s
+=
`"`
+
a
[
i
]
+
`"`
;
}
s
+=
"}"
;
return
s
;
}
func
main
()
{
m
:=
new
(
map
[
string
]
*
[]
string
);
as
:=
new
([
2
]
string
);
as
[
0
]
=
"0"
;
as
[
1
]
=
"1"
;
m
[
"0"
]
=
as
;
a
:=
m
[
"0"
];
a
[
0
]
=
"x"
;
m
[
"0"
][
0
]
=
"deleted"
;
if
m
[
"0"
][
0
]
!=
"deleted"
{
sys
.
exit
(
1
);
}
}
test/golden.out
View file @
0b6e6afb
...
...
@@ -306,9 +306,6 @@ BUG: compilation should succeed
bugs/bug057.go:13: syntax error
BUG: compilation should succeed
=========== bugs/bug059.go
BUG: crashes
=========== bugs/bug060.go
BUG: crashes
...
...
@@ -369,3 +366,5 @@ BUG: known to fail incorrectly
=========== fixedbugs/bug045.go
=========== fixedbugs/bug058.go
=========== fixedbugs/bug059.go
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