From a544938c264bbf1dd83c6b8f3d3232f4d96497b1 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 11 Jun 2008 12:07:43 -0700 Subject: [PATCH] - added test case SVN=122159 --- test/bugs/bug046.go | 15 +++++++++++++++ test/golden.out | 12 ++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 test/bugs/bug046.go diff --git a/test/bugs/bug046.go b/test/bugs/bug046.go new file mode 100644 index 0000000000..fd16e0f483 --- /dev/null +++ b/test/bugs/bug046.go @@ -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 pointer +*/ diff --git a/test/golden.out b/test/golden.out index 07a07293ee..4bbcdf56c9 100644 --- a/test/golden.out +++ b/test/golden.out @@ -46,7 +46,6 @@ test0.go:49: illegal types for operand test0.go:50: error in shape across assignment test0.go:55: illegal types for operand (*{}) CALLMETH ({}) -test0.go:54: function call must be single valued (0) test0.go:54: illegal types for operand ({}) AS ({}) BUG: known to fail incorrectly @@ -106,7 +105,8 @@ hello world =========== ken/simpvar.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 @@ -141,7 +141,7 @@ BUG: known to fail incorrectly =========== bugs/bug010.go 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 BUG: known to fail incorrectly @@ -164,7 +164,7 @@ bugs/bug022.go:8: illegal types for operand BUG: known to fail incorrectly =========== bugs/bug023.go -bugs/bug023.go:20: fatal error: naddr: const I{110(<_t117>{},<_o119>{},{});} +bugs/bug023.go:20: fatal error: naddr: const I{110(<_t138>{},<_o140>{},{});} BUG: known to fail incorrectly =========== bugs/bug025.go @@ -240,6 +240,10 @@ BUG: compilation should succeed bugs/bug045.go:13: fatal error: naddr: const {INT32;} BUG: known to fail incorrectly +=========== bugs/bug046.go +bugs/bug046.go:7: illegal pointer +BUG: known to fail incorrectly + =========== fixedbugs/bug000.go =========== fixedbugs/bug005.go -- 2.48.1