mirror of
https://github.com/golang/go
synced 2024-11-25 10:07:56 -07:00
- added 2 bugs tests
SVN=128056
This commit is contained in:
parent
4c5a165873
commit
bce1c3f09a
11
test/bugs/bug072.go
Normal file
11
test/bugs/bug072.go
Normal file
@ -0,0 +1,11 @@
|
||||
// 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
|
||||
}
|
14
test/bugs/bug073.go
Normal file
14
test/bugs/bug073.go
Normal file
@ -0,0 +1,14 @@
|
||||
// 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
|
||||
}
|
@ -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, 1606414960, ...)
|
||||
main·main(0x1, 0x7fff5fbff270, 0x0, ...)
|
||||
main·main(1, 0, 1606416424, ...)
|
||||
main·main(0x1, 0x7fff5fbff828, 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
|
||||
|
Loading…
Reference in New Issue
Block a user