libgo, compiler: Upgrade libgo to Go 1.4, except for runtime.
[official-gcc.git] / libgo / go / cmd / gofmt / testdata / rewrite6.input
blobb085a84fef4a878b41bdd90716dce23acb90ecb9
1 //gofmt -r=fun(x)->Fun(x)
3 // Copyright 2013 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 // Rewriting of calls must take the ... (ellipsis)
8 // attribute for the last argument into account.
10 package p
12 func fun(x []int) {}
14 func g(x []int) {
15         fun(x)    // -r='fun(x)->Fun(x)' should rewrite this to Fun(x)
16         fun(x...) // -r='fun(x)->Fun(x)' should not rewrite this