1 // $G $D/$F.go && $L $F.$A && ./$A.out
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // function call arg reordering was picking out 1 call that
8 // didn't need to be in a temporary, but it was picking
9 // out the first call instead of the last call.
10 // http://code.google.com/p/go/issues/detail?id=370
16 func f(n int) string {
17 s := string(gen) + string(n+'A'-1)
22 func g(x, y string) string {
29 println("BUG: bug221a: ", s)
34 println("BUG: bug221b: ", s)
37 s = f(5) + f(6) + f(7) + f(8) + f(9)
38 if s != "eEfFgGhHiI" {
39 println("BUG: bug221c: ", s)