mirror of https://github.com/golang/go.git
test/initcomma.go: restore what it's supposed to be testing
which is trailing commas in literals. They were gofmted away at some point. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5673103
This commit is contained in:
parent
f5ff5b4fcb
commit
c9b36a87eb
|
|
@ -4,12 +4,14 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Test trailing commas. DO NOT gofmt THIS FILE.
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
var a = []int{1, 2}
|
var a = []int{1, 2, }
|
||||||
var b = [5]int{1, 2, 3}
|
var b = [5]int{1, 2, 3, }
|
||||||
var c = []int{1}
|
var c = []int{1, }
|
||||||
var d = [...]int{1, 2, 3}
|
var d = [...]int{1, 2, 3, }
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if len(a) != 2 {
|
if len(a) != 2 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue