]> Cypherpunks repositories - gostls13.git/commitdiff
bug150
authorRuss Cox <rsc@golang.org>
Thu, 14 May 2009 01:05:27 +0000 (18:05 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 14 May 2009 01:05:27 +0000 (18:05 -0700)
R=ken
OCL=28785
CL=28785

test/bugs/bug150.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug150.go b/test/bugs/bug150.go
new file mode 100644 (file)
index 0000000..fc25444
--- /dev/null
@@ -0,0 +1,23 @@
+// $G $D/$F.go || echo BUG: bug150 
+
+// 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 int
+func (t T) M()
+
+type M interface { M() } 
+
+func g() (T, T)
+
+func f() (a, b M) {
+       a, b = g();
+       return;
+}
+
+/*
+bugs/bug150.go:13: reorder2: too many funcation calls evaluating parameters
+*/
index d201fb9fbe7ed26cce688d2dc03902e771053d80..4b3221c6eccd681172d84b89bd1b5ecabe4bc341 100644 (file)
@@ -105,6 +105,10 @@ BUG: should crash
 bugs/bug149.go:14: cannot convert []uint8 constant to string
 BUG: should compile
 
+=========== bugs/bug150.go
+bugs/bug150.go:13: reorder2: too many funcation calls evaluating parameters
+BUG: bug150
+
 =========== fixedbugs/bug016.go
 fixedbugs/bug016.go:7: constant -3 overflows uint