1 // runindir -goexperiment fieldtrack
3 // Copyright 2019 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Test case for issue 30862. This test as written will
8 // fail for the main 'gc' compiler unless GOEXPERIMENT=fieldtrack
9 // is set when building it, whereas gccgo has field tracking
10 // enabled by default (hence the build tag below).