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