mirror of
https://github.com/golang/go
synced 2024-11-25 13:38:00 -07:00
- added test case
SVN=122159
This commit is contained in:
parent
e8010b38e4
commit
a544938c26
15
test/bugs/bug046.go
Normal file
15
test/bugs/bug046.go
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// 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
|
||||||
|
|
||||||
|
type T *struct {}
|
||||||
|
|
||||||
|
func (x T) M () {} // not clear why this shouldn't work
|
||||||
|
|
||||||
|
/*
|
||||||
|
bug046.go:7: illegal <this> pointer
|
||||||
|
*/
|
@ -46,7 +46,6 @@ test0.go:49: illegal types for operand
|
|||||||
test0.go:50: error in shape across assignment
|
test0.go:50: error in shape across assignment
|
||||||
test0.go:55: illegal types for operand
|
test0.go:55: illegal types for operand
|
||||||
(*<Point2>{}) CALLMETH (<Point2>{})
|
(*<Point2>{}) CALLMETH (<Point2>{})
|
||||||
test0.go:54: function call must be single valued (0)
|
|
||||||
test0.go:54: illegal types for operand
|
test0.go:54: illegal types for operand
|
||||||
(<Point2>{}) AS ({})
|
(<Point2>{}) AS ({})
|
||||||
BUG: known to fail incorrectly
|
BUG: known to fail incorrectly
|
||||||
@ -106,7 +105,8 @@ hello world
|
|||||||
=========== ken/simpvar.go
|
=========== ken/simpvar.go
|
||||||
|
|
||||||
=========== ken/string.go
|
=========== ken/string.go
|
||||||
abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz
|
abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-index 0<12700>6
|
||||||
|
throw: bounds
|
||||||
|
|
||||||
=========== ken/strvar.go
|
=========== ken/strvar.go
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ BUG: known to fail incorrectly
|
|||||||
|
|
||||||
=========== bugs/bug010.go
|
=========== bugs/bug010.go
|
||||||
bugs/bug010.go:7: i undefined
|
bugs/bug010.go:7: i undefined
|
||||||
bugs/bug010.go:8: illegal conversion of constant to 020({},<_o114>{},{})
|
bugs/bug010.go:8: illegal conversion of constant to 020({},<_o135>{},{})
|
||||||
bugs/bug010.go:9: error in shape across assignment
|
bugs/bug010.go:9: error in shape across assignment
|
||||||
BUG: known to fail incorrectly
|
BUG: known to fail incorrectly
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ bugs/bug022.go:8: illegal types for operand
|
|||||||
BUG: known to fail incorrectly
|
BUG: known to fail incorrectly
|
||||||
|
|
||||||
=========== bugs/bug023.go
|
=========== bugs/bug023.go
|
||||||
bugs/bug023.go:20: fatal error: naddr: const <Type>I{<TypeName>110(<_t117>{},<_o119>{},{});}
|
bugs/bug023.go:20: fatal error: naddr: const <Type>I{<TypeName>110(<_t138>{},<_o140>{},{});}
|
||||||
BUG: known to fail incorrectly
|
BUG: known to fail incorrectly
|
||||||
|
|
||||||
=========== bugs/bug025.go
|
=========== bugs/bug025.go
|
||||||
@ -240,6 +240,10 @@ BUG: compilation should succeed
|
|||||||
bugs/bug045.go:13: fatal error: naddr: const <T>{<i><int32>INT32;}
|
bugs/bug045.go:13: fatal error: naddr: const <T>{<i><int32>INT32;}
|
||||||
BUG: known to fail incorrectly
|
BUG: known to fail incorrectly
|
||||||
|
|
||||||
|
=========== bugs/bug046.go
|
||||||
|
bugs/bug046.go:7: illegal <this> pointer
|
||||||
|
BUG: known to fail incorrectly
|
||||||
|
|
||||||
=========== fixedbugs/bug000.go
|
=========== fixedbugs/bug000.go
|
||||||
|
|
||||||
=========== fixedbugs/bug005.go
|
=========== fixedbugs/bug005.go
|
||||||
|
Loading…
Reference in New Issue
Block a user