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
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
test/bugs/bug264.go
test/bugs/bug264.go
+4
-4
test/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