From f86c6f673e6de1fd57c8b0d79a833e0880a92aa3 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 7 Jul 2008 17:52:44 -0700 Subject: [PATCH] k,l,m := 0,0,0 doesn't compile SVN=126247 --- test/bugs/bug065.go | 11 +++++++++++ test/golden.out | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 test/bugs/bug065.go diff --git a/test/bugs/bug065.go b/test/bugs/bug065.go new file mode 100644 index 0000000000..7ff373eb01 --- /dev/null +++ b/test/bugs/bug065.go @@ -0,0 +1,11 @@ +// $G $D/$F.go && $L $F.$A && ./$A.out + +// 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() { + k, l, m := 0,0,0; +} diff --git a/test/golden.out b/test/golden.out index b3a7eb15d8..eb99ab7a72 100644 --- a/test/golden.out +++ b/test/golden.out @@ -237,6 +237,11 @@ bugs/bug064.go:15: illegal types for operand: CALL ({INT32;INT32;}) BUG: compilation should succeed +=========== bugs/bug065.go +bugs/bug065.go:6: bad shape across assignment - cr=3 cl=2 + +BUG: known to fail incorrectly + =========== fixedbugs/bug000.go =========== fixedbugs/bug001.go -- 2.48.1