Debian Codegraph @

gcc/testsuite/go.test/test/fixedbugs/issue30862.dir/main.go

raw
1 // Copyright 2019 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 main
6
7 import (
8 "fmt"
9 "os"
10
11 "./b"
12 )
13
14 // Test case for issue 30862.
15
16 // Be aware that unless GOEXPERIMENT=fieldtrack is set when building
17 // the compiler, this test will fail if executed with a regular GC
18 // compiler.
19
20 func main() {
21 bad := b.Test()
22 if len(bad) > 0 {
23 for _, s := range bad {
24 fmt.Fprintf(os.Stderr, "test failed: %s\n", s)
25 }
26 os.Exit(1)
27 }
28 }