update tests

R=gri
OCL=14137
CL=14137
This commit is contained in:
Rob Pike 2008-08-12 16:11:55 -07:00
parent c1ab5a554f
commit 8c89767c72
6 changed files with 40 additions and 5 deletions

View File

@ -4,3 +4,4 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
ignored

View File

@ -4,3 +4,4 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
ignored

21
test/bugs/bug089.go Normal file
View File

@ -0,0 +1,21 @@
// $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
type I1 interface {}
type I2 interface { pr() }
func e() I1;
var i1 I1;
var i2 I2;
func
main()
{
i2 = e(); // bug089.go:16: fatal error: agen_inter i2i
}

View File

@ -91,9 +91,6 @@ BUG: known to fail incorrectly
bugs/bug054.go:25: fatal error: agen_inter i2s
BUG: known to fail incorrectly
=========== bugs/bug060.go
BUG: crashes
=========== bugs/bug061.go
bugs/bug061.go:7: illegal types for operand: SLICE
bugs/bug061.go:7: illegal types for operand: AS
@ -121,8 +118,8 @@ outer loop top k 1
k not zero
panic on line 310 PC=0x1362
0x1362?zi
main·main(1, 0, 1606416392, ...)
main·main(0x1, 0x7fff5fbff808, 0x0, ...)
main·main(1, 0, 1606414952, ...)
main·main(0x1, 0x7fff5fbff268, 0x0, ...)
BUG: crashes
Trace/BPT trap ./$A.out
@ -164,6 +161,9 @@ bugs/bug081.go:5: first constant must evaluate an expression
BUG: compiler should not crash
Bus error $G $D/$F.go
=========== bugs/bug083.go
BUG: succeeds incorrectly
=========== bugs/bug085.go
bugs/bug085.go:8: P: undefined
BUG: fails incorrectly
@ -178,6 +178,18 @@ bugs/bug087.go:8: illegal combination of literals LEN 9
bugs/bug087.go:8: illegal combination of literals LEN 9
BUG: fails incorrectly
=========== bugs/bug088.go
bugs/bug088.dir/bug1.go:8: shape error across :=
bugs/bug088.dir/bug1.go:8: a2: undefined
bugs/bug088.dir/bug1.go:8: b2: undefined
bugs/bug088.dir/bug1.go:8: illegal types for operand: AS
(<(bug0)P.int32>INT32)
BUG: fails incorrectly
=========== bugs/bug089.go
bugs/bug089.go:16: fatal error: agen_inter i2i
BUG: should compile
=========== fixedbugs/bug015.go
fixedbugs/bug015.go:7: overflow converting constant to <int64>INT64