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
bce1c3f0
Commit
bce1c3f0
authored
Jul 18, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added 2 bugs tests
SVN=128056
parent
4c5a1658
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
14 deletions
+33
-14
test/bugs/bug072.go
test/bugs/bug072.go
+11
-0
test/bugs/bug073.go
test/bugs/bug073.go
+14
-0
test/fixedbugs/bug071.go
test/fixedbugs/bug071.go
+0
-0
test/golden.out
test/golden.out
+8
-14
No files found.
test/bugs/bug072.go
0 → 100644
View file @
bce1c3f0
// errchk $G $D/$F.go
// 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
main
()
{
s
:=
string
(
bug
);
// crash
}
test/bugs/bug073.go
0 → 100644
View file @
bce1c3f0
// errchk $G $D/$F.go
// 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
main
()
{
var
s
int
=
0
;
var
x
int
=
0
;
x
=
x
<<
s
;
// should complain that s is not a uint
x
=
x
>>
s
;
// should complain that s is not a uint
}
test/bugs/bug071.go
→
test/
fixed
bugs/bug071.go
View file @
bce1c3f0
File moved
test/golden.out
View file @
bce1c3f0
...
...
@@ -192,15 +192,6 @@ enqueue: main·.stringo: not defined
BUG: link failure
=========== bugs/bug052.go
SIGSEGV: segmentation violation
Faulting address: 0x1
pc: 0x1346
0x1346?zi
main·main(1, 0, 1606414968, ...)
main·main(0x1, 0x7fff5fbff278, 0x0, ...)
BUG: incorrect code for division
=========== bugs/bug053.go
bugs/bug053.go:6: syntax error
...
...
@@ -249,7 +240,6 @@ bugs/bug064.go:15: illegal types for operand: CALL
BUG: compilation should succeed
=========== bugs/bug066.go
BUG: compilation should succeed
=========== bugs/bug067.go
...
...
@@ -265,12 +255,14 @@ outer loop top k 1
k not zero
panic on line 271 PC=0x1362
0x1362?zi
main·main(1, 0, 160641
4960
, ...)
main·main(0x1, 0x7fff5fbff
270
, 0x0, ...)
main·main(1, 0, 160641
6424
, ...)
main·main(0x1, 0x7fff5fbff
828
, 0x0, ...)
BUG: crashes
=========== bugs/bug071.go
BUG: compiler crashes
=========== bugs/bug072.go
=========== bugs/bug073.go
BUG: should not compile
=========== fixedbugs/bug000.go
...
...
@@ -364,3 +356,5 @@ fixedbugs/bug051.go:10: expression must be a constant
=========== fixedbugs/bug065.go
=========== fixedbugs/bug069.go
=========== fixedbugs/bug071.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