Debian Codegraph @

src/cmd/compile/internal/importer/testdata/versions/test.go

raw
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 // (add 'b' or 'i' to distinguish between binary and
16 // indexed format starting with 1.11 as long as both
17 // formats are supported).
18 //
19 // Make sure this source is extended such that it exercises
20 // whatever export format change has taken place.
21
22 package test
23
24 // Any release before and including Go 1.7 didn't encode
25 // the package for a blank struct field.
26 type BlankField struct {
27 _ int
28 }