github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/cmd/gofmt/testdata/rewrite2.input (about)

     1  // Copyright 2011 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package p
     6  
     7  // Slices have nil Len values in the corresponding ast.ArrayType
     8  // node and reflect.NewValue(slice.Len) is an invalid reflect.Value.
     9  // The rewriter must not crash in that case. Was issue 1696.
    10  func f() []int {}