diff options
| author | Rob Pike <r@golang.org> | 2009-05-26 16:06:03 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-05-26 16:06:03 -0700 |
| commit | 73d3597802f72e07021d6ea26d1b801123a36bbd (patch) | |
| tree | a58d04f441acefa4d1f8e037748a79d1c0c63b5f /test/fixedbugs/bug150.go | |
| parent | 499d0c2ce2b918ad78f15ea0b00dc5a332aa4f30 (diff) | |
| download | golang-73d3597802f72e07021d6ea26d1b801123a36bbd.tar.gz | |
bug150 is fixed
R=ken
OCL=29407
CL=29407
Diffstat (limited to 'test/fixedbugs/bug150.go')
| -rw-r--r-- | test/fixedbugs/bug150.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/fixedbugs/bug150.go b/test/fixedbugs/bug150.go new file mode 100644 index 000000000..fc25444b6 --- /dev/null +++ b/test/fixedbugs/bug150.go @@ -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 +*/ |
