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
c93273c0
Commit
c93273c0
authored
Mar 25, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug264 didn't report BUG correctly, caused "fail" from test/run
R=rsc, gri CC=golang-dev
https://golang.org/cl/762041
parent
7fbf9fcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
bug264.go
test/bugs/bug264.go
+4
-4
golden.out
test/golden.out
+2
-1
No files found.
test/bugs/bug264.go
View file @
c93273c0
// $G $D/$F.go && $L $F.$A && ./$A.out
// $G $D/$F.go && $L $F.$A && ./$A.out
|| echo BUG
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
...
...
@@ -38,12 +38,12 @@ var _, _ = bal() // bal is called twice
func
main
()
{
if
fooCount
!=
1
{
panic
(
"
BUG:
fooCount != 1"
)
panic
(
"fooCount != 1"
)
}
if
barCount
!=
1
{
panic
(
"
BUG:
barCount != 1"
)
panic
(
"barCount != 1"
)
}
if
balCount
!=
1
{
panic
(
"
BUG:
balCount != 1"
)
panic
(
"balCount != 1"
)
}
}
test/golden.out
View file @
c93273c0
...
...
@@ -189,5 +189,6 @@ bar
bar
bal
bal
BUG:
barCount != 1
barCount != 1
panic PC=xxx
BUG
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