github.com/slayercat/go@v0.0.0-20170428012452-c51559813f61/src/go/internal/gcimporter/testdata/versions/test.go (about)

     1  // Copyright 2016 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  // To create a test case for a new export format version,
     6  // build this package with the latest compiler and store
     7  // the resulting .a file appropriately named in the versions
     8  // directory. The VersionHandling test will pick it up.
     9  //
    10  // In the testdata/versions:
    11  //
    12  // go build -o test_go1.$X_$Y.a test.go
    13  //
    14  // with $X = Go version and $Y = export format version.
    15  //
    16  // Make sure this source is extended such that it exercises
    17  // whatever export format change has taken place.
    18  
    19  package test
    20  
    21  // Any release before and including Go 1.7 didn't encode
    22  // the package for a blank struct field.
    23  type BlankField struct {
    24  	_ int
    25  }