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
9cf8312a
Commit
9cf8312a
authored
Jul 30, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- bug in function invocation
R=r OCL=13640 CL=13640
parent
4b0b7d8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
test/bugs/bug080.go
test/bugs/bug080.go
+23
-0
test/golden.out
test/golden.out
+8
-2
No files found.
test/bugs/bug080.go
0 → 100644
View file @
9cf8312a
// $G $D/$F.go || echo BUG: fails incorrectly
// 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
f1
()
(
x
int
,
y
float
)
{
}
func
f2
(
x
int
,
y
float
)
{
}
func
main
()
{
f2
(
f1
());
// this should be a legal call
}
/*
bug080.go:12: illegal types for operand: CALL
(<int32>INT32)
({<x><int32>INT32;<y><float32>FLOAT32;})
*/
test/golden.out
View file @
9cf8312a
...
@@ -213,8 +213,8 @@ outer loop top k 1
...
@@ -213,8 +213,8 @@ outer loop top k 1
k not zero
k not zero
panic on line 305 PC=0x1362
panic on line 305 PC=0x1362
0x1362?zi
0x1362?zi
main·main(1, 0, 160641
4952
, ...)
main·main(1, 0, 160641
6400
, ...)
main·main(0x1, 0x7fff5fbff
268
, 0x0, ...)
main·main(0x1, 0x7fff5fbff
810
, 0x0, ...)
BUG: crashes
BUG: crashes
=========== bugs/bug072.go
=========== bugs/bug072.go
...
@@ -241,6 +241,12 @@ BUG: known to succeed incorrectly
...
@@ -241,6 +241,12 @@ BUG: known to succeed incorrectly
=========== bugs/bug079.go
=========== bugs/bug079.go
BUG: succeeds incorrectly
BUG: succeeds incorrectly
=========== bugs/bug080.go
bugs/bug080.go:12: illegal types for operand: CALL
(<int32>INT32)
({<x><int32>INT32;<y><float32>FLOAT32;})
BUG: fails incorrectly
=========== fixedbugs/bug000.go
=========== fixedbugs/bug000.go
=========== fixedbugs/bug001.go
=========== fixedbugs/bug001.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